You are viewing a single comment's thread from:

RE: [Streemian.com] Scheduled Posts publicly available now!

in #streemian9 years ago

perhaps there is a way we can combine/incorporate these features in future

Who about I offer you an API? It will still be required that the users have the streemian account in their posting permission. Otherwise, I can't post in their name, of course.

Btw, html is removed in preview, but it won't be on publish, right?

correct!

Sort:  

I think, API would be great, so API would receive post content, time and user must have streemian permission...
If user logged in with their main password, I suppose we can request them to give permission, right, in case streemian doesn't have permission? Any direction on how to do that with Steem API, without piston?

Looks the same way I would go!

Any direction on how to do that with Steem API, without piston?

You need to use the account_update operation and replace the whole posting attribute of the account. With replacing, I mean REPLACE the whole thing. So you take the current posting structure, add the streemian account name to the account_auths, use the threshold as weight and put it into the account_update operation.

It would look like this:

 'operations': [['account_update',
                 {'account': 'fabian',
                  'json_metadata': '{"profile": {"name": "Fabian"}}',
                  'memo_key': 'STM6Gkj27XMkoGsr4zwEvkjNhh4dykbXmPFzHhT8g86jWsqu3U38X',
                  'posting': {'account_auths': [['streemian', '1']],
                              'key_auths': [['STM8EhGWcEuQ2pqCKkGHnbmcTNpWYZDjGTT7ketVBp4gUStDr2brz',
                                             '1']],
                              'weight_threshold': 1}}]],