根据Google Drive SDK Update 共享权限和https://developers.google.com/drive/v2/reference/permissions我想将整个文件夹内容更改为可供查看(该文件夹仅包含图像,我显示它们在我的页面上<img alt='' src='https://drive.google.com/uc?export=view&id="fileID"'/>
)
所以,我正在尝试使用该代码
PermissionList permissions = Google_DriveService.Permissions.List(fileId).Fetch();
var filePermissions = permissions.Items;
Permission permission = Google_DriveService.Permissions.Get(fileId, filePermissions[0].Id).Fetch();
permission.Role = "reader";
permission.Value = "me";
permission.Type = "anyone";
permission.WithLink = true;
var updated = Google_DriveService.Permissions.Update(permission, fileId, filePermissions[0].Id).Fetch();
但我收到错误消息
Google.Apis.Requests.RequestError Invalid permission type specified [400] Errors [ Message[Invalid permission type specified] Location[ - ] Reason[invalid] Domain[global] ]
我究竟做错了什么 ?