Google Realtime API - share settings on shortcut file

[亡魂溺海] 提交于 2019-12-11 09:05:29

问题


This is a follow up to Google Realtime API - what is the role of a shortcut file in google drive?

What is the effect of share settings on a shortcut file? Does a user need to share this shortcut file with other collaborators?

In my case, my web application already contains share settings between users. These are my own share setting that I store in my database. They are currently sharing between each other but have to edit a file one person at a time. Ideally I would like to just use the settings from my application to seamlessly make it so that they can collaborate at the same time, without having them to once again give edit permissions.


回答1:


The share settings control who has access to read or write to a realtime document, just like for any other Drive file.

They can be set programmatically via the Drive API, or you can allow users to update settings via a common sharing dialog. See https://developers.google.com/drive/manage-sharing

If you have an existing setup, you could programmatically transfer the share settings to the realtime shortcut files as one-off transition step. We don't generally recommend trying to keep them in sync, as it can be a bit tricky, but its possible.



来源:https://stackoverflow.com/questions/17624050/google-realtime-api-share-settings-on-shortcut-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!