GET
gdrive_files_get.py
from charter.packs import gdrive
result = await gdrive.files_get.ainvoke({"fileId": ...})
Requires
https://www.googleapis.com/auth/drive. Costs 1 against the provider’s own quota.Path parameters
| Field | Type | Description |
|---|---|---|
fileId * | string | The ID of the file. |
Query parameters
| Field | Type | Description |
|---|---|---|
acknowledgeAbuse | boolean | Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the alt parameter is set to media and the user is the owner of the file or an organizer of the shared drive in which the file resides. |
includePermissionsForView | string | Specifies which additional view’s permissions to include in the response. Only published is supported. |
includeLabels | string | A comma-separated list of IDs of labels to include in the labelInfo part of the response. |
supportsAllDrives | boolean | Whether the requesting application supports both My Drives and shared drives. |
alt | Alt | If you provide alt=media, then the response includes the file contents in the response body. Downloading content with alt=media only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use files.export instead. |