How to access Google Drive using an access token (deprecated) - 7.1

Google Drive

EnrichVersion
7.1
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
EnrichPlatform
Talend Studio
task
Data Governance > Third-party systems > Cloud storages > Google Drive components
Data Quality and Preparation > Third-party systems > Cloud storages > Google Drive components
Design and Development > Third-party systems > Cloud storages > Google Drive components
To use an access token to access Google Drive, you need to first generate the access token by completing the following steps using Google Developers OAuth Playground.

Before you begin

  1. A Google account has already been signed up for using Google Drive.
  2. The client ID and client secret have been created in Google API Console. For more information, see How to access Google Drive using client ID and secret.

Procedure

  1. Go to Google Developers OAuth Playground.
  2. 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.
  3. In OAuth 2.0 Playground Step 1, select the scope https://www.googleapis.com/auth/drive under Drive API v3 for the Google Drive API and click Authorize APIs, then click Allow to generate the authorization code.
  4. 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. It can be used by Google Drive components and metadata wizard to access Google Drive via the OAuth method Access Token.

    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.