作为跟进,当我建立共享链接时,如何删除对文档的访问权限?
我会认为它是这样的(我将角色设置为"无"),但这不起作用:
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>
您必须向 ACL url 发送 DELETE 请求,如 https://developers.google.com/google-apps/documents-list/#removing_sharing_permissions 中所述