Connect to your users’ Google Docs accounts.
You can find your Google app credentials by visiting your Google Cloud Console dashboard.
You’ll need the following information to set up your Google App with Paragon Connect:
Google Applications using scopes that permit access to certain user data must complete a verification process. Read more about Google’s various API scopes and procceses to verify your usage.
Paragon provides a redirect URL to send information to your Google app. To add the redirect URL to your Google app:
In your Google Cloud Console dashboard, navigate to APIs & Services > Credentials in the sidebar.
Press ”+ Create Credentials”, then select OAuth client ID.
Select “Web application” from the Application type drop-down menu.
Note: You’ll need to configure Google’s consent screen for access to Client ID and Client Secret if you haven’t already.
Under Authorized redirect URIs, press the ”+ Add URI” button.
Paste-in the redirect URL from Paragon.
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.
In your Google Cloud Console dashboard, navigate to APIs & Services > Library in the sidebar.
Search for “Google Docs API” from the API Library.
Select the “Google Docs API”.
Press the blue “Enable” button to enable the API for your application.
Select Google Docs from the Integrations Catalog.
Under Integrations > Connected Integrations > Google Docs > App Configuration > Configure, fill out your credentials from the end of Step 1 in their respective sections:
/documents
.Press the purple “Save Changes” 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.
See the Google Docs REST API documentation for their full API reference.
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:
GET
request with a number of query parameters.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:
Log into your Google Cloud Console dashboard and select your application.
Navigate to APIs & Services > Credentials and select the credentials you use with Paragon.
Under Authorized redirect URIs, provide the URL of your Redirect Page.