GET
gdrive_files_export.py
Requires
https://www.googleapis.com/auth/drive. Costs 1 against the provider’s own quota.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Export a Google Workspace document to the requested MIME type and return the exported content. Limited to 10 MB. Common MIME types: text/plain, text/html, text/csv, application/pdf.
from charter.packs import gdrive
result = await gdrive.files_export.ainvoke({"fileId": ..., "mimeType": ...})
https://www.googleapis.com/auth/drive. Costs 1 against the provider’s own quota.| Field | Type | Description |
|---|---|---|
fileId * | string | The ID of the file. |
| Field | Type | Description |
|---|---|---|
mimeType * | string | Required. The MIME type of the format requested for this export. For a list of supported MIME types, see Export MIME types for Google Workspace documents. Common values: text/plain, text/html, text/csv, application/pdf, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet. |
Was this page helpful?