Google Drive API高级分享设置

时间:2016-04-18 01:42:20

标签: google-drive-api

我想通过API更改高级共享设置,如下所示:http://cdn.makeuseof.com/wp-content/uploads/2015/11/Disable-Copying02.jpg

正如它在此处所述:http://venturebeat.com/2015/07/14/you-can-now-disable-downloading-printing-and-copying-for-any-file-stored-in-google-drive/这应该是可能的,但我在文档中找不到任何内容?

您能指出我在文档的正确部分或举一个简短的例子吗?

非常感谢!

1 个答案:

答案 0 :(得分:1)

Drive API提供files().update选项,如下所示: https://developers.google.com/drive/v2/reference/files/update

在请求参数中,labels.restricted属性可以设置为True,以便禁用下载,打印等,writersCanShare属性应为False编辑无法改变访问权限。

相关问题