Google Drive API会从邀请电子邮件地址中删除权限

时间:2016-01-21 08:02:10

标签: php google-drive-api

我已通过API方法为Google云端硬盘中的文件夹添加了权限。我也在Drive UI中看到了电子邮件(foobar@example.com)邀请。

我的问题是,当我尝试使用以下方法删除权限时:

$permissionId = $service->permissions->getIdForEmail($email)
$service->permissions->delete($fileId, $permissionId);

我收到错误:

"code": 404,
"message": "Permission not found: xxxxxxxxxx"

如何使用Google Drive API从邀请中删除权限?

0 个答案:

没有答案
相关问题