Bearer logo
  • Product
  • Docs
  • Blog
  • Pricing
Google Drive API logo

Google Drive API

Start using this API
for free with Bearer

Sign up with Github button iconSign up with GithubSign up with Email

API documentation
https://developers.google.com/drive/api/v3/reference/

Developer website
https://developers.google.com/drive/

Incorrect or missing information? Help us

What is the Google Drive API?

Available for both businesses as part of the G Suite as well as consumers, Google Drive is a robust document hoster and manager. The Google Drive API makes it simple to upload new files to a user as well as editing previously uploaded file.

How to use the Google Drive API?

NodeJSRubyPythonPHP
// npm install @bearer/node
bearer
.integration('google_drive')
.auth('AUTH_ID') // Check the code example below on how to generate access tokens
.get('/files/FILE-ID/comments', {})
.then(({ data }) => console.log(data))
.catch(e => console.log(e))
NodeJSRubyPythonPHP
// npm install @bearer/node
bearer
.integration('google_drive')
.auth('AUTH_ID') // Check the code example below on how to generate access tokens
.get('/files', { query: { corpus: "user", fields: "files(id, name, mimeType)"}})
.then(({ data }) => console.log(data))
.catch(e => console.log(e))
HTML/JSReact
<script src="https://cdn.jsdelivr.net/npm/@bearer/js/lib/bearer.production.min.js"></script>
<button class="btn btn-primary" onclick="myConnectButton()">
Connect to Google Drive
</button>
<script>
const bearerClient = bearer('YOUR_BEARER_PUB_KEY')
function myConnectButton() {
bearerClient
.connect(
'google_drive'
)
.then(({ authId }) => {
// Use this authId like bearer.auth(authId).get(..
console.log('AUTH_ID for this user', authId)
})
}
</script>

Tutorials on the Google Drive API

Update a file with the Google Drive API

Learn how to interact with files using the Google Drive API and Node.js.

Dec, 2019

How to configure the Google Drive API

This guide explains how to configure the Google Drive API, using OAuth, to use that API in your application. Overview 1. Sign in to the Google Cloud Cons...

Dec, 2019

Start using the Google Drive API

Bearer provides a universal API client to call any Google Drive endpoints. It takes care of API authentication, credentials management, and monitoring out-of-the-box.

Available in Node.js, Ruby, Python, and PHP

Sign up with Github button iconSign up with GithubSign up with Email

How to get a Google Drive API Key?

  1. Sign in to the Google Cloud console - https://console.developers.google.com/
  2. Select your Google's project (or create a new one)
  3. Search for the Google Drive API and enable it
  4. On the main menu, select "APIs & Services" then "Credentials"
  5. Now create credentials with the "OAuth client ID" method
  6. If you don't have one, you'll have to configure an OAuth consent screen. Inside the OAuth consent screen configuration, make sure that "bearer.sh" is listed in the "Authorized domains"
  7. Now, back to create an OAuth client ID page, select "Web application"
  8. In the Authorized redirect URIs, paste the following URL - https://int.bearer.sh/v2/auth/callback
  9. Click on "Create" and that's it!

How to generate an access token for the Google Drive API?

Use our access token generator below with your Google Drive account!
Looking for managing refresh tokens or triggering the OAuth dance from your app? Developers using Bearer don't have to manage those anymore, we do! Learn more.

Generate Access Token button iconGenerate Access Token

Start integrating the Google Drive API for free!

Universal API client

Query the Google Drive API and hundreds more APIs using a single API client.

Identity Management

From API credentials to OAuth dance, token and refresh token, Bearer manages it all.

Real-time Monitoring

Get a complete overview of your API usage with metrics and in-depth logs, find errors anddebug in a snap.

Bearer - Integrations built in minutes, Monitored in real-time

Company

Product

Docs & Help

Legal

Bearer is on TwitterBearer is on GitHubBearer is on FacebookBearer is on LinkedIn
© Copyright Bearer 2019
Bearer uses cookies to make its website easier to use. Learn more about cookies.