Method: properties.list

מציג את מאפייני הקובץ.

בקשת HTTP

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

כתובת ה-URL משתמשת בתחביר של gRPC Transcoding.

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

פרמטרים
fileId

string

המזהה של הקובץ.

גוף הבקשה

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

גוף התשובה

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

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

ייצוג ב-JSON
{
  "items": [
    {
      object (Property)
    }
  ],
  "kind": string,
  "etag": string,
  "selfLink": string
}
שדות
items[]

object (Property)

רשימת הנכסים.

kind

string

הנתיב הזה תמיד drive#propertyList.

etag

string

תג ה-ETag של הרשימה.

היקפי הרשאה

נדרש אחד מהיקפי ההרשאות הבאים של 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.meet.readonly
  • 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

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