For better experience using the Drive API, make sure you have installed the OAuth 2.0 Playground Drive app on the Chrome Webstore. Dismiss

OAuth 2.0 Playground

Reload
Reset all settings
Help
Help - Feedback - Bugs
Options
Create Link
Options
OAuth 2.0 Configuration

Step 1Select & authorize APIs

Select the scope for the APIs you would like to access or input your own OAuth scopes below. Then click the "Authorize APIs" button.

    1
Authorize the selected APIs and scopes

Step 2Exchange authorization code for tokens

The access token below is provided after going through Step 1. It is a short lived token which gives you access to the user's OAuth protected resources.

Once you got the Authorization Code from Step 1 click the Exchange authorization code for tokens button, you will get a refresh and an access token which is required to access OAuth protected resources.


Auto-refresh the token before it expires.

Note: The OAuth Playground does not store refresh tokens, but as refresh tokens never expire, user should go to their Google Account Authorized Access page if they would like to manually revoke them.

Step 3Configure request to API

Construct your HTTP request by specifying the URI, HTTP Method, headers, content type and request body.
Then click the "Send the request" button to initiate the HTTP Request.

GET
  • GET
  • POST
  • PUT
  • DELETE
  • PATCH
Content-Type: application/json
  • application/json
  • application/atom+xml
  • text/plain
  • text/csv
  • Custom...

Note: The OAuth access token in Step 2 will be added to the Authorization header of the request.

Request / Response
No request.