How to get refresh token for google drive api

Go to (Make sure you added this URL to your Authorized redirect URIs in the previous step.)

In the top right corner, click the settings icon, check “Use your own OAuth credentials” and paste your Client ID and Client Secret.

In step 1 on the left, scroll to “Drive API v3”, expand it and check the first drive scope.

Click “Authorize APIs” and allow access to your account when prompted. There will be a few warning prompts, just proceed.

When you get to step 2, check “Auto-refresh the token before it expires” and click “Exchange authorization code for tokens”.

When you get to step 3, click on step 2 again and you should see your refresh token.


About the author

Janaki( - A Software developer with 9+ years of experience in multiple technology projects across web, mobile, and cloud applications with expertise in PHP, C#, MySQL, Web services and open source platforms.

Similar Posts

Leave a reply


Eye Test: * Time limit is exhausted. Please reload CAPTCHA.