Bearer logo

Quickly build your own Google Drive API Integration

  • Don’t waste time learning the Google Drive API behaviour
  • Use a pre-configured API client and OAuth2 implementation
  • Consume and transform the Google Drive API with functions
  • Host and scale your integration for free
  • Monitor and log every API call to the Google Drive API out of the box.
  • Integrate into your app within seconds using our integration clients
or read the documentation

As a developer, I want to build an integration on Google Drive

On Bearer

Clone the template

npm init bearer google-drive -t -d providers/google-drive
cd google-drive

Configure your API credentials

npm run bearer setup:auth
? Enter Google Drive Client ID:
? Enter Google Drive Client Secret:
Setup the integration with your Google Drive OAuth2 credentials. This will allow you to make authenticated API requests. Don't know your Google Drive OAuth2 credentials?

Test the pre-built function

npm run bearer invoke defaultFunction
  "data": [
      "id": "1oB6jDTYUb8_UznDhhL5RQ083Z5zn4RacuUma22_8byQ",
      "url": "",
      "name": "List of bears",
      "mimeType": "application/"
      "id": "1qRJlkvh9KOWKoGb9TguXFNEBlMP_Www_Tp-A3mxbNmg",
      "url": "",
      "name": "giant panda vs. brown bear",
      "mimeType": "application/"

Code your own function

npm run bearer generate:function myFunction
create: functions/myFunction.ts
Function generated
✨ Done
Use your function to call any Google Drive endpoint and map the data to your app models.

Deploy your integration

npm run bearer push
Refreshing tokens... done
✓ Generate bundle
✓ Transfer bundle
🐻 Integration successfully pushed.
Once your integration is ready, deploy it on the Bearer platform and you’re good to go!
On Your App

Add a Connect Component

<script src=""></script>
const bearerClient = bearer('BEARER_CLIENT_ID')
Once users log in with their Google Drive account, your functions are able to query the API using their credentials.

Call your functions

<script src=""></script>
const bearerClient = bearer('BEARER_CLIENT_ID')
bearerClient.invoke('INTEGRATION_UUID', 'FUNCTION_NAME', {
query: { params: 'value' }
.then(() => {
console.log('Successfully invoked function')
.catch(() => {
console.log('Something went wrong')
Use our integration clients to call your functions from your app.

Featured Templates

Bearer - API integration Framework



Docs & Help


Bearer is on TwitterBearer is on GitHubBearer is on FacebookBearer is on LinkedInBearer is on Medium
© Copyright Bearer 2019