Sharing an object in simperium, write_access doesnt do anything -


i have created 2 users, , if create bucket 1 user , object inside bucket can share using http api @ moment.. see here

https://simperium.com/docs/reference/http/#objectshare

however, when sent through "write_access" = true , 200 result, doesnt seem let me write it. if enable sharing other way allows data sync both ways, doing wrong?

has collaboration got further yet? can see there long no docs yet? know?

after more trial & error, found solution:

to edit shared object, target user (ie user object shared with) needs use objectid equal to: <original_user_simperiumid>/<original_objectid> edit object.

if use <original_objectid> won't work.

so full command editing shared object, using curl:

curl -h 'x-simperium-token: {auth_token_of_target_user}' https://api.simperium.com/1/{appid}/{entity}/i/{original_user_simperiumid>/{original_objectid} -d '{"data_key" : "new_data_value"}'


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -