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!
I think, API would be great, so API would receive post content, time and user must have
streemianpermission...If user logged in with their main password, I suppose we can request them to give permission, right, in case
streemiandoesn't have permission? Any direction on how to do that with Steem API, without piston?Looks the same way I would go!
You need to use the
account_updateoperation and replace the wholepostingattribute of the account. With replacing, I mean REPLACE the whole thing. So you take the current posting structure, add thestreemianaccount name to theaccount_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}}]],