Google Drive API
Start using this API
for free with Bearer
API documentation
https://developers.google.com/drive/api/v3/reference/
Developer website
https://developers.google.com/drive/
What is the Google Drive API?
How to use the Google Drive API?
// npm install @bearer/nodebearer .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))
// npm install @bearer/nodebearer .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))
<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, 2019How 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, 2019Start 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
How to get a Google Drive API Key?
- Sign in to the Google Cloud console - https://console.developers.google.com/
- Select your Google's project (or create a new one)
- Search for the Google Drive API and enable it
- On the main menu, select "APIs & Services" then "Credentials"
- Now create credentials with the "OAuth client ID" method
- 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"
- Now, back to create an OAuth client ID page, select "Web application"
- In the Authorized redirect URIs, paste the following URL - https://int.bearer.sh/v2/auth/callback
- 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.
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.