Method: properties.list

แสดงรายการพร็อพเพอร์ตี้ของไฟล์

คำขอ HTTP

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

URL ใช้ไวยากรณ์การแปลงรหัส gRPC

พารามิเตอร์เส้นทาง

พารามิเตอร์
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

ขอบเขตบางอย่างถูกจำกัดและต้องมีการประเมินความปลอดภัยเพื่อให้แอปของคุณใช้งานได้ ดูข้อมูลเพิ่มเติมได้ที่คู่มือการให้สิทธิ์