- 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 there you can find your Refresh token.
