禁用python下载google驱动器文件的选项

2024-10-02 02:41:43 发布

您现在位置:Python中文网/ 问答频道 /正文

是否有一个选项可以通过python API禁用文件下载选项。我在API URL下寻找了不同的选项,但没有找到任何选项。在

https://developers.google.com/drive/api/v2/reference/permissions/list

但是googledrivewebui可以选择禁用文件下载。在

enter image description here


Tags: 文件httpscomapiurlpermissions选项google
1条回答
网友
1楼 · 发布于 2024-10-02 02:41:43

这与其他权限不同,因为它平等地应用于所有用户。相反,此复选框对应于所讨论的File objectlabels.restricted字段:

labels.restrictedboolean Whether viewers and commenters are prevented from downloading, printing, and copying this file.

相关问题 更多 >

    热门问题