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

javascript - Bootstrap Popover: iOS Safari strange behaviour -

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

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -