Method: changes.getStartPageToken

取得用來列出未來變更的起始 pageToken。

HTTP 要求

GET https://www.googleapis.com/drive/v2/changes/startPageToken

這個網址使用 gRPC 轉碼語法。

查詢參數

參數
driveId

string

系統會傳回共用雲端硬碟 ID,這個 ID 用於列出該共用雲端硬碟日後變更的起始 pageToken。

supportsAllDrives

boolean

提出要求的應用程式是否支援「我的雲端硬碟」和共用雲端硬碟。

supportsTeamDrives
(deprecated)

boolean

已淘汰:請改用 supportsAllDrives

teamDriveId
(deprecated)

string

已淘汰:請改用 driveId

要求主體

要求主體必須為空白。

回應主體

如果成功,回應主體即會包含具有以下結構的資料:

JSON 表示法
{
  "startPageToken": string,
  "kind": string
}
欄位
startPageToken

string

用來列出變更的起始頁面符記。

kind

string

指出資源的類型。值:固定字串 "drive#startPageToken"

授權範圍

需要下列其中一種 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

部分範圍受到限制,應用程式必須進行安全性評估,才能使用這些範圍。詳情請參閱授權指南