Google Docs
Connect your Google Docs app for OAuth in Paragon
Last updated
Connect your Google Docs app for OAuth in Paragon
Last updated
You can find your Google app credentials by visiting your .
You'll need the following information to set up your Google App with Paragon Connect:
Client ID
Client Secret
Scopes Requested
Note: You'll need to create a new project in Google Cloud Console if you don't already have one.
Paragon provides a redirect URL to send information to your Google app. To add the redirect URL to your Google app:
1. Copy the link under "Redirect URL" in your integration settings in Paragon. The Redirect URL is:
2. In your , navigate to APIs & Services > Credentials in the sidebar.
3. Press "+ Create Credentials", then select OAuth client ID.
4. Select "Web application" from the Application type drop-down menu.
Note: You'll need to configure Google's for access to Client ID and Client Secret if you haven't already.
5. Under Authorized redirect URIs, press the "+ Add URI" button.
6. Paste-in the redirect URL from Paragon.
7. Press the blue "Create" button.
Google provides you with the Client ID and Client Secret needed for the next steps after adding the redirect URL to your project.
2. Search for "Google Docs API" from the API Library.
3. Select the "Google Docs API".
4. Press the blue "Enable" button to enable the API for your application.
1. Select Google Docs from the Integrations Catalog.
Client ID: Found at the end of Step 1.
Client Secret: Found at the end of Step 1.
Permissions: Select the scopes you've requested for your application. They should contain /documents
.
Press the blue "Connect" button to save your credentials.
Note: Leaving the Client ID and Client Secret blank will use Paragon development keys.
Once your users have connected their Google Docs account, you can use the Paragon SDK to access the Google Docs API on behalf of connected users.
Any Google Docs API endpoints can be accessed with the Paragon SDK as shown in this example.
When saving or getting files in Google Docs, you can reference data from previous steps by typing {{
to invoke the variable menu.
Your Google Docs integration requires a Redirect Page hosted in your application to support verification of your application by Google.
The Redirect Page should be implemented as follows:
Receives a GET
request with a number of query parameters.
Redirect to https://passport.useparagon.com/oauth
with the same query parameters.
If you were previously testing with https://passport.useparagon.com/oauth
as your Google Docs Redirect URL, you will need to update this value after implementing a Redirect Page:
Navigate to APIs & Services > Credentials and select the credentials you use with Paragon.
Under Authorized redirect URIs, provide the URL of your Redirect Page.
1. In your navigate to APIs & Services > Library in the sidebar.
2. Under Integrations > Connected Integrations > {YOUR_APP} > Settings, fill out your credentials from the end of in their respective sections:
See the Google Docs for their full API reference.
Log into your and select your application.