Cloud Storage
Google Drive is a cloud-based file storage system. Using Agave, you can integrate with Google Drive and dozens of other systems in hours using a single API.
Agave has sandbox environments with sample data that you can use instead of spending time creating your own.
Agave provides unified models and access to source data. In addition, we even support passthrough requests, so you are never blocked by us.
curl https://api.agaveapi.com/files \
# 3 headers that are consisttent
-H 'Api-Version: 2021-11-21' \
-H 'Client-Id: your-client-id' \
-H 'Client-Secret: your-client-secret' \
# Change the account token to request data from different accounts and different systems
-H 'Account-Token: google-drive-example-account-token'
Consistent schema across all systems
{
"id": "ee9b53e7-f982-4be6-bc12-75f716d3ee94",
"source_id": "12345",
"creator_id": "ee9b53e7-f982-4be6-bc12-75f716d3ee94",
"file_version_id": "ee9b53e7-f982-4be6-bc12-75f716d3ee94",
"filename": "Test_File.pdf",
"folder_id": "ee9b53e7-f982-4be6-bc12-75f716d3ee94",
"name": "Test_File",
"notes": [ "This File is confidential." ],
"preview_url": "https://storage.agaveapi.com/preview/file.pdf?signature=xxx&expires_at=20220101T000001Z",
"size": 98765,
"type": "Adobe Acrobat PDF",
"url": "https://storage.agaveapi.com/download/file.pdf?signature=xxx&expires_at=20220530T031901Z",
"version": "4",
"source_create_time": "2022-01-01T00:00:00Z",
"source_update_time": "2022-01-01T00:00:00Z",
}
Get raw output from Google Drive
{
"kind": "drive#file",
"fileExtension": "pdf",
"copyRequiresWriterPermission": false,
"md5Checksum": "4a8b9844e25d0cfa0ef661e386199d97",
"writersCanShare": true,
"viewedByMe": true,
"mimeType": "application/pdf",
"parents": [],
"thumbnailLink": "https://lh4.googleusercontent.com/hAbW8-c7TCfeAyhB6McDSetzonONb2kp-K78KKEzWucF2o8uJ3pPX8FSDZcY6XztIREpqGOQGqOodE4=s220",
"iconLink": "https://drive-thirdparty.googleusercontent.com/16/type/application/pdf",
"shared": false,
"lastModifyingUser": {},
"owners": [ ],
"headRevisionId": "0B_AdFT-kXuYhNUFUNzc4bWF3dkk2MkZRckdhZVd1dnBNbmNJPQ",
...
}
Option to call Google Drive APIs directly
curl --request POST https://api.agaveapi.com/passthrough \
--header 'API-Version: 2021-11-21' \
--header 'Client-Id: your-client-id' \
--header 'Client-Secret: your-client-secret' \
--header 'Account-Token: google-drive-account-token' \
--header 'Content-Type: application/json' \
--data-raw '{
"method": "GET",
"path": "/rest/v1.0/files",
"data": { "path": "/project-12345/" }
}'
We also support the following features for Google Drive.