๐ Quickstart
Connect to Google Docs with Nango and see data flow in 2 minutes.Create an integration
In Nango (free signup), go to Integrations -> Configure New Integration -> Google Docs.
Nango has credentials you can use for testing. Activate them in the dashboard.
Authorize Google Docs
Go to Connections -> Add Test Connection -> Authorize, then log in to Google Docs. Later, youโll let your users do the same directly from your app.
Call the Google Docs API
Letโs make your first request to the Google Docs API (fetch a specific document). 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
The
{documentId} in the URL represents the ID of the document to retrieve.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 Docs Integration Guides
Nango maintained guides for common use cases.-
How to register your own Google Docs OAuth app
Register an OAuth app with Google Docs and obtain credentials to connect it to Nango - Google App & Security Review Pass Googleโs OAuth app verification to go to production
๐งฉ Pre-built syncs & actions for Google Docs
Enable them in your dashboard. Extend and customize to fit your needs.Others
| Function name | Description | Type | Source code |
|---|---|---|---|
document-content-by-id | Sync full document structure and content for document IDs supplied in connection metadata | Sync | ๐ Github |
documents-from-drive-folders | Discover Google Docs files under folder IDs from metadata, then hydrate each document through the Docs API. | Sync | ๐ Github |
documents-from-drive-query | Discover Google Docs files with a Drive search query, then sync each document content | Sync | ๐ Github |
documents-from-shared-drives | Discover Google Docs files across shared drives and hydrate each document through the Docs API | Sync | ๐ Github |
recent-documents | Sync recently modified Google Docs files from Drive and fetch current document content for each changed file. | Sync | ๐ Github |