Method: properties.list

מפרט את המאפיינים של קובץ.

בקשת HTTP

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

בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.

פרמטרים של נתיב

פרמטרים
fileId

string

מזהה הקובץ.

גוף הבקשה

גוף הבקשה חייב להיות ריק.

גוף התגובה

אוסף של מאפיינים, צמדי מפתח/ערך שהם ציבוריים או פרטיים עבור אפליקציה.

אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול נתונים במבנה הבא:

ייצוג 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

חלק מההיקפים מוגבלים ומחייבים בדיקת אבטחה כדי שהאפליקציה תוכל להשתמש בהם. למידע נוסף, ניתן לעיין במדריך ההרשאות.