APIs & Integrations
Google Drive
Overview
Pre-built tooling
Pre-built use cases
Not seeing the use case you need? Build your own independently.
Access requirements
Pre-Requisites | Status | Comment |
---|---|---|
Paid dev account | ❓ | |
Paid test account | ❓ | |
Partnership | ❓ | |
App review | ❓ | |
Security audit | ❓ |
Setup guide
No setup guide yet.
Need help getting started? Get help in the community.
Contribute improvements to the setup guide by editing this page
Useful links
Contribute useful links by editing this page
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.file
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?