我想使用 Google Drive API 与任何拥有查看文件链接的人共享文件。
但是,即使我使用管理员帐户,我也因错误 403 而失败
"code": 403,
"message": "The user does not have sufficient permissions for this file."
我尝试使用 API Explorer 但仍然失败。
以下是我的参数,请帮忙
fileID:"xxxxxxx"
Request Body
{
"role": "reader",
"type": "anyone"
}
和回应
Response
{
"error": {
"errors": [
{
"domain": "global",
"reason": "insufficientFilePermissions",
"message": "The user does not have sufficient permissions for this file."
}
],
"code": 403,
"message": "The user does not have sufficient permissions for this file."
}
}
请检查并帮助。
谢谢