tGoogleDriveConnection
components.
Obtaining an access token for Google Drive
To use Google Drive API, you need first to obtain the access token by completing the
following steps using Google Chrome:
-
Go to the Google API Console
and select an existing project or create a new one. In this example, we create a
new project TalendProject. -
Go to the Library page and in the right
panel, click Drive API and then click ENABLE to enable the Google Drive API that allows
clients to access resources from Google Drive. -
Go to the Credentials page, click OAuth consent screen in the right panel and set a
product name in the Product name shown to users
field. In this example, it is TalendProduct.
When done, click Save to save the
change. -
Click Create credentials > OAuth client ID, and in the Create client ID page, create a new client ID TalendWebClient with Application type set to Web
application and Authorized redirect
URIs set to https://developers.google.com/oauthplayground.The created OAuth client ID and client secret will be used for obtaining the
access token. -
Go to the Google
Developers OAuth 2.0 Playground, click OAuth
2.0 Configuration and select Use your own
OAuth credentials check box, enter the OAuth client ID and client
secret you have already created in the OAuth Client
ID and OAuth Client secret
fields respectively. -
In OAuth 2.0 Playground Step 1, select the
scope https://www.googleapis.com/auth/drive
for the Google Drive API and click Authorize
APIs, then click Allow to
generate the authorization code. -
In OAuth 2.0 Playground Step 2, click
Exchange authorization code for tokens to
generate the OAuth access token.The OAuth access token is displayed on the right panel as shown in below
figure. Note that the access token expires in every 3600 seconds. You can click
Refresh access token in OAuth 2.0 Playground Step 2 to refresh it.
tGoogleDriveConnection Standard properties
These properties are used to configure tGoogleDriveConnection running in the Standard Job framework.
The Standard
tGoogleDriveConnection component belongs to the Cloud family.
The component in this framework is generally available.
Basic settings
Application Name |
Enter the application name required by Google Drive to get access to its APIs. |
Access Token |
Enter the access token required by Google Drive to access a Google Drive account and operate |
Use HTTP Proxy |
Select this check box if you are working behind an HTTP proxy. |
Proxy Host |
Enter the IP address of the HTTP proxy server. This field is available only when the Use |
Proxy Port |
Enter the port number of the HTTP proxy server. This field is available only when the Use |
Use SSL |
Select this check box if an SSL connection is used to access Google Drive. |
Algorithm |
Enter the name of the SSL cryptography algorithm. This field is available only when the Use |
TrustStore File |
Browse to or enter the path to the certificate TrustStore file that contains the list of This field is available only when the Use |
Password |
Enter the password used to check the integrity of the TrustStore data. This field is available only when the Use |
Advanced settings
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at the Job level as well as |
Global Variables
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see |
Usage
Usage rule |
This component is more commonly used with other Google Drive components. In a Job |
Related scenario
For a related scenario, see Managing files with Google Drive.