Method: permissions.getIdForEmail

メールアドレスの権限 ID を返します。

HTTP リクエスト

GET https://www.googleapis.com/drive/v2/permissionIds/{email}

この URL は gRPC Transcoding 構文を使用します。

パスパラメータ

パラメータ
email

string

権限 ID を返すメールアドレス

リクエスト本文

リクエストの本文は空にする必要があります。

レスポンスの本文

権限項目に表示されるユーザーまたはグループの ID。

成功すると、レスポンスの本文に次の構造のデータが含まれます。

JSON 表現
{
  "kind": string,
  "id": string
}
フィールド
kind

string

これは常に drive#permissionId です。

id

string

権限 ID。

認可スコープ

次の OAuth スコープのいずれかが必要です。

  • https://www.googleapis.com/auth/docs
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.appdata
  • https://www.googleapis.com/auth/drive.apps.readonly
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/drive.metadata
  • https://www.googleapis.com/auth/drive.metadata.readonly
  • https://www.googleapis.com/auth/drive.photos.readonly
  • https://www.googleapis.com/auth/drive.readonly

一部のスコープは制限されているため、アプリで使用するにはセキュリティ評価が必要です。詳細については、承認ガイドをご覧ください。