Method: properties.get
ملکی را با کلید آن بدست می آورد.
درخواست HTTP
GET https://www.googleapis.com/drive/v2/files/{fileId}/properties/{propertyKey}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
fileId | string شناسه فایل |
propertyKey | string کلید ملک. |
پارامترهای پرس و جو
مولفه های |
---|
visibility | string دید ملک. |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از 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.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
برخی از دامنه ها محدود هستند و برای استفاده از برنامه شما به ارزیابی امنیتی نیاز دارند. برای اطلاعات بیشتر، به راهنمای مجوز مراجعه کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی."],[[["Retrieves a specific property of a file using its `fileId` and `propertyKey`."],["Requires an empty request body and returns a `Property` object if successful."],["Utilizes an HTTP `GET` request to the specified URL with gRPC Transcoding syntax."],["Needs authorization with one of the listed OAuth scopes, including `drive`, `drive.file`, or `drive.metadata`."],["Allows optional filtering by property `visibility` using query parameters."]]],["This outlines how to retrieve a property by its key using a GET request to the specified URL. The request requires a `fileId` and `propertyKey` as path parameters, and an optional `visibility` query parameter. The request body must be empty. A successful response returns a Property instance. This operation requires one of several specified OAuth authorization scopes, some of which have security restrictions.\n"]]