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

Google Drive

Version
Cloud
8.0
Language
English
Product
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 Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Cloud storages > Google components > Google Drive components
Data Quality and Preparation > Third-party systems > Cloud storages > Google components > Google Drive components
Design and Development > Third-party systems > Cloud storages > Google components > Google Drive components
Last publication date
2023-09-14
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.