With the Google Drive® connector, you can use commands in a chain to manage files and folders in Google Drive. For example, with this connector, you can:
- Search files in Google Drive
- Upload and download files
- Create or delete files and folders
To enable the connection, the connector uses the Google Drive REST API. To set up the connector, you'll need:
- A dedicated Google® web application with OAuth consent and API access enabled
- The integration project's OAuth client ID and secret
- Pop-ups enabled on your browser
Create a Google Web Application
To set up the connector, first create a Google web application with OAuth consent and API access enabled. The connector uses the application's OAuth client ID and secret to connect to the Google Drive API.
Step 1. Select or Create a Project
In the Google APIs developer console, select or create a project to use with the connector. To create a project:
- In the toolbar, click Select a project or the current project's name, and then click New Project.
- In Project name, enter a unique name to help identify the integration.
- In Location, select your organization so others can use the project.
- Click Create.
Step 2. Create the OAuth Client ID and Secret
- On the OAuth consent screen tab, select Internal, and click Create.
- Under Authorized domains, enter onecloud.io, and click Save.
- On the Credentials tab, click Create credentials, and select OAuth client ID.
- Under Application type, select Web application.
- Enter a unique name to help identify the OAuth client ID.
- Under Authorized redirect URIs, add
- Click Create, and note the client ID and secret.
Step 3. Enable API Access
- Select the Library tab.
- Search for and select Google Drive API.
- Under Google Drive API, click Enable.
Set Up the Google Drive Connector
- From Chains, click Connections and Add Connection .
- Under BizApp Connection, select Google Drive and the default CloudRunner.
- Under Basic Info, enter a unique name and description to help identify the connector.
- Under OAuth, enter the client ID and secret for the connector's Google integration project.
Note: All sensitive credentials are automatically encrypted and stored at 2,048-bit encryption.
- Click Connect, and authorize the connector's access to your Google account.
Note: To ensure Google can authorize the connector's access, enable browser pop-ups.
- Select the environments to use with the connection, and click Save.
- To test the connection, create and run a chain with the connector's Download File command, and verify it returns a valid output.
If the connection to Google Drive fails:
- Verify the integration project's client ID and secret. In the Google APIs developer console, the project's client ID and secret appear on the Credentials tab.
https://app.onecloud.ioand redirect URI of
- Verify the project has access to the Google Drive API enabled.