Method: properties.list

Mencantumkan properti file.

Permintaan HTTP

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

URL menggunakan sintaksis gRPC Transcoding.

Parameter jalur

Parameter
fileId

string

ID file.

Isi permintaan

Isi permintaan harus kosong.

Isi respons

Kumpulan properti, key-value pair yang bersifat publik atau pribadi untuk aplikasi.

Jika berhasil, isi respons memuat data dengan struktur berikut:

Representasi JSON
{
  "kind": string,
  "etag": string,
  "selfLink": string,
  "items": [
    {
      object (Property)
    }
  ]
}
Kolom
kind

string

Ini selalu drive#propertyList.

etag

string

ETag daftar.

items[]

object (Property)

Daftar properti.

Cakupan otorisasi

Memerlukan salah satu cakupan OAuth berikut:

  • 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

Beberapa cakupan dibatasi dan membutuhkan penilaian keamanan agar aplikasi Anda dapat menggunakannya. Untuk mengetahui informasi selengkapnya, lihat Panduan otorisasi.