Method: changes.get

非推奨: 最近の変更を取得するには、changes.getStartPageTokenchanges.list を使用します。

HTTP リクエスト

GET https://www.googleapis.com/drive/v2/changes/{changeId}

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

パスパラメータ

パラメータ
changeId

string

変更の ID。

クエリ パラメータ

パラメータ
driveId

string

変更が返される共有ドライブ。

supportsAllDrives

boolean

リクエスト元のアプリケーションがマイドライブと共有ドライブの両方をサポートしているかどうかを指定します。

supportsTeamDrives
(deprecated)

boolean

非推奨: 代わりに supportsAllDrives を使用してください。

teamDriveId
(deprecated)

string

非推奨: 代わりに driveId を使用してください。

リクエスト本文

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

レスポンスの本文

成功した場合、レスポンスの本文には Change のインスタンスが含まれます。

認可スコープ

次の 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

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