Pre-Configured APIs
Google Drive
API configuration: google-drive
Features
Features | Status |
---|---|
Auth (OAuth) | ✅ |
Sync data | ✅ |
Perform workflows | ✅ |
Proxy requests | ✅ |
Receive webhooks | 🚫 (time to contribute: <48h) |
We can implement missing features in <48h, just ask for it in the community.
Getting started
Need help getting started? Get help in the community.
Pre-built Google Drive integration
Nango’s pre-built Google drive integration only syncs whitelisted files & folders. You can use the Google Drive Picker to let the customer pick files & folders to sync.
1
Auth & Show Google Drive Picker
Scope to set in Nango: https://www.googleapis.com/auth/drive.readonly
In your frontend, run the OAuth flow with nango.auth
and show the Google drive picker to your user.
Example code:
Placeholders:
<GOOGLE_APP_ID>
is your App id. How to find your app id<GOOGLE_CLIENT_ID>
is the client id of your Google OAuth app<GOOGLE_PICKER_API_KEY>
is the api key for your Google Picker API
2
3
Re-trigger the sync
Re-trigger the sync in the dashboard, or with the API or node SDK. File metadata should get synced.
API gotchas
- Almost all Google drive scopes are “restricted scopes” by Google. This means your app needs to pass a security review with Google, before you can go live with users.
- The only exception is the
drive.file
scope. It lets your app access files & folders the user has previously authorized with the Google Drive Picker API.
- The only exception is the
Add Getting Started links and Gotchas by editing this page
Was this page helpful?