Method: properties.list

列出檔案的屬性。

HTTP 要求

GET https://www.googleapis.com/drive/v2/files/{fileId}/properties

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

路徑參數

參數
fileId

string

檔案的 ID。

要求主體

要求主體必須為空白。

回應主體

應用程式屬性的集合,可以是公開或不公開的屬性。

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

JSON 表示法
{
  "kind": string,
  "etag": string,
  "selfLink": string,
  "items": [
    {
      object (Property)
    }
  ]
}
欄位
kind

string

一律為 drive#propertyList

etag

string

清單的 ETag。

items[]

object (Property)

屬性清單。

授權範圍

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

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