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
Options
Create Link
Options
OAuth 2.0 Configuration

Step 1Select & authorize APIs

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

    1
  • Adsense Management https://www.googleapis.com/auth/adsense
  • Google Affiliate Network https://www.googleapis.com/auth/gan
  • Analytics https://www.googleapis.com/auth/analytics.readonly
  • Google Books https://www.googleapis.com/auth/books
  • Blogger https://www.googleapis.com/auth/blogger
  • Calendar https://www.googleapis.com/auth/calendar
  • Google Cloud Storage https://www.googleapis.com/auth/devstorage.read_write
  • Contacts https://www.google.com/m8/feeds/
  • Content API for Shopping https://www.googleapis.com/auth/structuredcontent
  • Chrome Web Store https://www.googleapis.com/auth/chromewebstore.readonly
  • Documents List https://docs.google.com/feeds/
  • Google Drive https://www.googleapis.com/auth/drive.file
  • Gmail https://mail.google.com/mail/feed/atom
  • Google+ https://www.googleapis.com/auth/plus.me
  • Groups Provisioning https://apps-apis.google.com/a/feeds/groups/
  • Google Latitude https://www.googleapis.com/auth/latitude.all.best https://www.googleapis.com/auth/latitude.all.city
  • Moderator https://www.googleapis.com/auth/moderator
  • Nicknames Provisioning https://apps-apis.google.com/a/feeds/alias/
  • Orkut https://www.googleapis.com/auth/orkut
  • Picasa Web https://picasaweb.google.com/data/
  • Sites https://sites.google.com/feeds/
  • Spreadsheets https://spreadsheets.google.com/feeds/
  • Tasks https://www.googleapis.com/auth/tasks
  • URL Shortener https://www.googleapis.com/auth/urlshortener
  • Userinfo - Email https://www.googleapis.com/auth/userinfo.email
  • Userinfo - Profile https://www.googleapis.com/auth/userinfo.profile
  • User Provisioning https://apps-apis.google.com/a/feeds/user/
  • Webmaster Tools https://www.google.com/webmasters/tools/feeds/
  • YouTube https://gdata.youtube.com
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.