Skip to main content

google-drive

Upload, download, and manage files in Google Drive via the Drive API using curl.

Quellinformationen

Repository
ThinkfleetAI/thinkfleet-engine
Letzte Quellaktivität
1. Februar 2026 um 16:21
Erkannte Sprache von SKILL.md
Englisch
Sterne
0
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
google-drive
description
Upload, download, and manage files in Google Drive via the Drive API using curl.
metadata
{"thinkfleetbot":{"emoji":"📁","requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# Google Drive File operations via Google Drive API v3. ## Environment Variables - `GOOGLE_ACCESS_TOKEN` - OAuth2 access token with `drive` scope ## List files ```bash curl -s -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ "https://www.googleapis.com/drive/v3/files?pageSize=10&fields=files(id,name,mimeType,modifiedTime)" \ | jq '.files[]' ``` ## Download a file ```bash curl -s -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ "https://www.googleapis.com/drive/v3/files/FILE_ID?alt=media" -o /tmp/downloaded-file ``` ## Upload a file ```bash curl -s -X POST \ -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ -F "metadata={\"name\":\"myfile.txt\"};type=application/json;charset=UTF-8" \ -F "file=@/tmp/myfile.txt" \ "https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart" \ | jq '{id, name}' ``` ## Search files ```bash curl -s -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ "https://www.googleapis.com/drive/v3/files?q=name%20contains%20'report'&fields=files(id,name)" \ | jq '.files[]' ``` ## Notes - For large files (>5MB), use resumable upload. - Always confirm before deleting files.
Auf GitHub ansehen