π Quickstart
Connect to Google Drive with Nango and see data flow in 2 minutes.1
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.
2
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.
3
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
4
Implement Nango in your app
Follow our quickstart 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.Documents
| Function name | Description | Type | Source code |
|---|---|---|---|
upload-document | Uploads a file to Google Drive. The file is uploaded to the root directory of the authenticated userβs Google Drive account. If a folder ID is provided, the file is uploaded to the specified folder. | Action | π Github |
documents | Sync the metadata of a specified file or folders from Google Drive, handling both individual files and nested folders. Metadata required to filter on a particular folder, or file(s). Metadata fields should be {"files": ["<some-id>"]} OR {"folders": ["<some-id>"]}. The ID should be able to be provided by using the Google Picker API (https://developers.google.com/drive/picker/guides/overview) and using the ID field provided by the response (https://developers.google.com/drive/picker/reference/results) | Sync | π Github |
Drives
| Function name | Description | Type | Source code |
|---|---|---|---|
list-drives | Lists all shared drives the user has access to. Returns paginated results with up to 100 drives per page. | Action | π Github |
Folders
| Function name | Description | Type | Source code |
|---|---|---|---|
folder-content | Fetches the top-level content (files and folders) of a folder given its ID. If no folder ID is provided, it fetches content from the root folder. | Action | π Github |
folders | Sync the folders at the root level of a google drive. | Sync | π Github |