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