返回电子邮件地址的权限 ID。
HTTP 请求
GET https://www.googleapis.com/drive/v2/permissionIds/{email}
网址采用 gRPC 转码语法。
路径参数
| 参数 | |
|---|---|
email |
要为其返回权限 ID 的电子邮件地址 |
请求正文
请求正文必须为空。
响应正文
用户或群组的 ID,如权限项中所示。
如果成功,响应正文将包含结构如下的数据:
| JSON 表示法 |
|---|
{ "kind": string, "id": string } |
| 字段 | |
|---|---|
kind |
此值始终为 |
id |
权限 ID。 |
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/docshttps://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.apps.readonlyhttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.photos.readonlyhttps://www.googleapis.com/auth/drive.readonly
某些镜重受限,您的应用需要接受安全评估才能使用它们。如需了解详情,请参阅授权指南。