Remove a shared link to a google resource

醉酒当歌 提交于 2019-12-11 11:09:21

问题


As a followup to this how can I remove access to a document when I have established a shared link?

I would have assumed it was something like this (where I set the role to 'none') but that doesn't work:

POST /feeds/default/private/full/<resource_id>/acl
GData-Version: 3.0
Authorization: OAuth <access_token>

<entry xmlns='http://www.w3.org/2005/Atom' xmlns:gAcl='http://schemas.google.com/acl/2007'>
<category scheme='http://schemas.google.com/g/2005#kind'
 term='http://schemas.google.com/acl/2007#accessRule'/>
  <gAcl:withKey key='dummy_key'>
     <gAcl:role value='none'/>
  </gAcl:withKey>
  <gAcl:scope type='default'/>
</entry>

回答1:


You have to send a DELETE request to the ACL url, as explained at https://developers.google.com/google-apps/documents-list/#removing_sharing_permissions



来源:https://stackoverflow.com/questions/10502756/remove-a-shared-link-to-a-google-resource

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