Google Drive
Unggah, cari, dan kelola berkas Google Drive lewat API APIPedia.
Unggah berkas, cari berdasarkan nama atau tipe, dan atur izin akses berkas di Google Drive. Pemanggil selalu memanggil API APIPedia dengan token APIPedia sendiri; Composio hanya broker OAuth di belakang layar dan tidak pernah dipanggil langsung.
- Base URL:
https://api.apipedia.id/v1/toolkits/googledrive - Autentikasi:
Authorization: Bearer apk_…(token dari console.apipedia.id) - Kategori: Produktivitas
- Halaman: https://apipedia.id/docs/google-drive
- OpenAPI: https://console.apipedia.id/openapi/google-drive.yaml
Semua respons memakai amplop { "is_success", "message", "data" } kecuali disebutkan lain. Kode error umum: lihat https://apipedia.id/docs#kode-status-error.
Endpoint (1)
GET /files: Daftar berkas di Google Drive
Daftar berkas di Google Drive
GET https://api.apipedia.id/v1/toolkits/googledrive/files
Dieksekusi lewat tool Composio GOOGLEDRIVE_LIST_FILES. Memerlukan koneksi aktif di halaman Koneksi (409 bila belum).
| Parameter | Lokasi | Tipe | Wajib | Keterangan |
|---|---|---|---|---|
limit | query | integer | tidak | Jumlah berkas, 1-100. Nilai di luar rentang jatuh ke 10. Default 10. |
q | query | string | tidak | Kueri pencarian sintaks Google Drive. |
Contoh request:
curl -X GET "https://api.apipedia.id/v1/toolkits/googledrive/files?limit=10&q=mimeType%3D'application%2Fpdf'" \
-H "Authorization: Bearer apk_xxxxxxxxxxxxxxxx"
Contoh respons (200):
{
"is_success": true,
"message": "Daftar berkas Google Drive berhasil diambil",
"data": {
"tool": "GOOGLEDRIVE_LIST_FILES",
"result": {
"files": [
{
"id": "1QwErTyUiOpAsDfGhJkL",
"name": "Kontrak 2026.pdf",
"mimeType": "application/pdf"
}
],
"nextPageToken": null
}
}
}