Skip to main content Skip to complementary content

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

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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!