π Quickstart
Connect to Google Drive with Nango and see data flow in 2 minutes.Create the integration
In Nango (free signup), go to Integrations -> Configure New Integration -> Google Drive.
Nango has credentials you can use for testing. Activate them in the dashboard.
Authorize Google Drive
Go to Connections -> Add Test Connection -> Authorize, then log in to Google Drive. Later, youβll let your users do the same directly from your app.
Call the Google Drive API
Letβs make your first request to the Google Drive API (fetch a list of files). Replace the placeholders below with your secret key, integration ID, and connection ID:Or fetch credentials with the Node SDK or API.β
Youβre connected! Check the Logs tab in Nango to inspect requests.
- cURL
- Node
Implement Nango in your app
Follow our Auth implementation guide to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.
π Google Drive Integration Guides
Nango maintained guides for common use cases.-
How to register your own Google Drive OAuth app
Register an OAuth app with Google Drive and obtain credentials to connect it to Nango -
Complete integration example with the Nango Sample App
See a production-ready Google Drive integration with file picker, webhooks, and file syncing. Includes a demo video walkthrough and GitHub repository.
π§© Pre-built syncs & actions for Google Drive
Enable them in your dashboard. Extend and customize to fit your needs.Changes
| Function name | Description | Type | Source code |
|---|---|---|---|
get-changes-start-page-token | Get the starting token for listing future changes | Action | π Github |
list-changes | List changes to files and shared drives | Action | π Github |
Comments
| Function name | Description | Type | Source code |
|---|---|---|---|
create-comment | Add a comment to a file | Action | π Github |
delete-comment | Delete a comment from a file | Action | π Github |
get-comment | Get a comment by ID | Action | π Github |
list-comments | List comments on a file | Action | π Github |
update-comment | Update a comment on a file | Action | π Github |
Drive
| Function name | Description | Type | Source code |
|---|---|---|---|
create-folder | Create a new folder in Google Drive | Action | π Github |
get-about | Get the userβs drive info and storage quota | Action | π Github |
Drives
| Function name | Description | Type | Source code |
|---|---|---|---|
create-shared-drive | Create a shared drive | Action | π Github |
delete-shared-drive | Delete a shared drive | Action | π Github |
get-shared-drive | Get a shared drive by ID | Action | π Github |
list-shared-drives | List shared drives the user can access, with cursor pagination and drive metadata like hidden, capabilities, and restrictions. | Action | π Github |
Files
| Function name | Description | Type | Source code |
|---|---|---|---|
copy-file | Copy a file to a destination | Action | π Github |
delete-file | Delete a file or folder from Google Drive | Action | π Github |
empty-trash | Permanently delete all trashed files | Action | π Github |
find-file | Search for files by name or query in Google Drive | Action | π Github |
get-revision | Get a file revision by ID | Action | π Github |
list-files-non-unified | List immediate files and folders for a folder ID, or root when omitted, with cursor pagination and shared-drive support. | Action | π Github |
move-file | Move a file to a different folder | Action | π Github |
update-file | Update a fileβs metadata | Action | π Github |
upload-document | Upload plain text or base64 file content up to 5 MB, optionally into a folder with a description; defaults to root | Action | π Github |
sync-files | Sync file metadata for IDs in connection metadata files, or recursively for all files under folder IDs in folders. Supports shared drives. | Sync | π Github |
Folders
| Function name | Description | Type | Source code |
|---|---|---|---|
find-folder | Search for a folder by name or query | Action | π Github |
sync-folders | Sync root-level Google Drive folders from My Drive and shared drives | Sync | π Github |
Permissions
| Function name | Description | Type | Source code |
|---|---|---|---|
delete-permission | Remove a permission from a file | Action | π Github |
get-permission | Get a permission by ID | Action | π Github |
list-permissions | List permissions on a file | Action | π Github |
update-permission | Update a permission on a file | Action | π Github |
sync-permissions | Sync file permissions from Google Drive | Sync | π Github |
Shared Drives
| Function name | Description | Type | Source code |
|---|---|---|---|
hide-shared-drive | Hide a shared drive from the default view | Action | π Github |
unhide-shared-drive | Restore a hidden shared drive to default view | Action | π Github |
update-shared-drive | Update a shared driveβs metadata | Action | π Github |
sync-shared-drives | Sync shared drives from Google Drive | Sync | π Github |