Bearer logo

Quickly use Google Drive's API to build your own integration

  • Call the Google Drive API in 2 minutes
  • Integrate into your App with our universal API client
  • Out-of-the-box managed OAuth2 flow & credentials
  • Monitor your Google Drive's API usage as the latency and error rate
  • Log every API call to Google Drive from status code to payload
  • Setup rules and receive alerts in real-time on Google Drive's API incidents

Call the Google Drive API with Bearer client

NodeJSRubyPythonPHP
// npm install @bearer/node
bearer
.integration('google_drive')
.auth('AUTH_ID') // Check the code in the box below to learn more about identity
.get('/files', { query: { corpus: "user", fields: "files(id, name, mimeType)"}})
.then(({ data }) => console.log(data))
.catch(e => console.log(e))

Ask for the Google Drive identity of your users

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>

In one click, you can also generate an identity using your own Google Drive account directly from the Dashboard

Manage & Monitor

Credentials

Securely store all your API credentials and rotate them in one click.

Monitoring

Get a complete overview of your API usage, from latency to error rate.

Logging

Automatically log every API call, find errors and debug in a snap with end-to-end trace.

Featured APIs

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

Company

Docs & Help

Legal

Bearer is on TwitterBearer is on GitHubBearer is on FacebookBearer is on LinkedIn
© Copyright Bearer 2019