Paragon
Home
Search…
Paragon
Paragon Connect
Home
Start a Free Trial
Quickstart Sample App
Getting Started
Introduction
Installing the Connect SDK
Adding an Integration
Displaying the Connect Portal
Customizing the Connect Portal
Workflows
Building Workflows
Triggering Workflows
Integration Actions
Workflow User Settings
Making API Requests
Using Functions
Using Conditionals
Using Fan Out
Sending a Response
Viewing Task History
Auto-Retries
Version History
API
Using the Connect API
API Reference
Resources
Integration Providers
Asana
Azure DevOps
ClickUp
Facebook Ads
Google
Google Analytics
Google Calendar
Google Campaign Manager 360
Google Drive
Google Search Console
Google Sheets
HubSpot
Intercom
Jira
Klaviyo
Mailchimp
Marketo
Microsoft Dynamics 365
Microsoft Outlook
Microsoft Teams
Monday.com
Oracle Eloqua
Oracle Financials Cloud
Outreach
Pardot
Pipedrive
QuickBooks
Salesforce
ServiceNow
SharePoint
Shopify
Slack
Stripe
Trello
Xero
Zendesk
Zoom
Custom Integrations
JavaScript Libraries
Paragon User Token Generator
Tutorials
Building a Salesforce Integration
Building a HubSpot Integration
Building a Slack Integration
Building a Marketo Integration
Managing Your Account
Setting up Environment Secrets
Working with Team Members
Working with Projects
Security
Security
GDPR
Service Level Agreement
What's new in Paragon
Powered By
GitBook
Google Drive
Connect your Google Drive app for OAuth in Paragon
Setup Guide
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:
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.
Add the Redirect URL to your Google app
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:
1
https://passport.useparagon.com/oauth
Copied!
2. In your
Google Cloud Console dashboard
, 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
consent screen
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.
Enable Google Drive API in Google Cloud Console Dashboard
1. In your
Google Cloud Console dashboard,
navigate to
APIs & Services > Library
in the sidebar.
2. Search for "Google Drive API" from the API Library.
3. Select the "Google Drive API".
4. Press the blue "
Enable
" button to enable the API for your application.
Add your Google app to Paragon
1. Select
Google Drive
from the
Integrations Catalog
.
2. Under
Integrations > Connected Integrations >
{YOUR_APP}
>
Settings
, fill out your credentials from the end of
Step 1
in their respective sections:
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 begin with
drive
.
Press the blue "
Connect
" button to save your credentials.
Note:
Leaving the Client ID and Client Secret blank will use Paragon development keys.
Connecting to Google Drive
Once your users have connected their Google Drive account, you can use the Paragon SDK to access the Google Drive API on behalf of connected users.
See the Google Drive
REST API documentation
for their full API reference.
Any Google Drive API endpoints can be accessed with the Paragon SDK as shown in this example.
1
// You can find your project ID in the Overview tab of any Integration
2
3
// Authenticate the user
4
paragon
.
authenticate
(
<
ProjectId
>
,
<
UserToken
>
);
5
6
// Query Files
7
await
paragon
.
request
(
"googledrive"
,
`
/files?q=
${
8
encodeURIComponent
(
'name="test"'
)
9
}
`
,
{
10
method
:
"GET"
11
});
Copied!
Building Google Drive workflows
Once your Google Drive account is connected, you can add steps to perform the following actions:
Save File
Get File
When saving or getting files in Google Drive, you can reference data from previous steps by typing
{{
to invoke the variable menu.
Previous
Google Campaign Manager 360
Next
Google Search Console
Last modified
9mo ago
Copy link
Contents
Setup Guide
Add the Redirect URL to your Google app
Enable Google Drive API in Google Cloud Console Dashboard
Add your Google app to Paragon
Connecting to Google Drive
Building Google Drive workflows