How to get Google Client ID, Secret Key & Refresh Token?

Before you can start using EXT:ns_googledocs, You need to get Google Client ID, Secret Key and Refresh Token for your Gmail account. These details will help to fetch Google Docs from your Gmail account.

  1. To Create Google Client ID and Secret Key go to https://console.developers.google.com
  2. Create a New Project or select existing project.
Select Project
  1. Switch to Credentials. Click on Create Credentials button and Select OAuth Client ID
Create OAuth Client
  1. Select “Web Application” option and set Authorized redirect URIs “https://developers.google.com/oauthplayground
Create OAuth Client
  1. This will generate Client ID and Client Secret Key.
Client ID & Secret Key
  1. Switch to Library and search for “Google Drive API”. Select API and enable it.
Enable API
  1. Now go to https://developers.google.com/oauthplayground/
  2. Set your Client ID and Secret Key in Settings
Set ID and Secret Key in Settings
  1. Go to Step 1 section. Search & expand Drive API v3. Select all options and click on Authorize APIs button.
Authorize APIs
  1. Now, go to Step 2 and ther you can find your Refresh token.
Refresh Token

Once you complete these steps, you will have Google Client ID, Secret Key and Refresh Token for your account. You have to set those in Global Settings of EXT:ns_googledocs.