Skip to main content

Enabling APIs and creating credentials in Google Console

To connect to Google, you must enable API access to your Google Account and obtain Credentials to authenticate to Google. To allow API access and create Credentials, follow the steps given below:

Create a Project in Google Cloud Console

  • Go to Google Console and sign in to your Google account.
  • In the top pane, click on either Select a Project to use an existing project or click on New Project by providing project name (IntelliBuddies) and clicking on Create.
  • If you create a new project, then select the project by clicking on Select a project.

  • You can switch between your projects by clicking on a selected project on the top pane.

Enable API

  • After successfully creating your project, select APIs and services in the left menu.

  • Inside APIs & Services, click on ENABLE APIS AND SERVICES. It opens the API Library page.

  • In the API Library, search for Google Drive API and Google Sheets API one by one.

  • Click on Google Drive API in search result. Click on the Enable button to enable this API. Similarly, follow the same step to enable Google Sheet API.

  • Click on OAuth Consent Screen in the left navigation menu.
  • Select an appropriate user type. You have two options Internal and External.
    • Internal - For those having a Google Workspace account.
    • External - For standard Google account users.

  • Give your App a name.
  • In User Support Email, select your Google account from the drop-down, scroll down to Developer Contact Information, and give an email address. This email address is for Google to notify you about any changes to your project. Click on Save and continue.

  • Skip Scopes and Test users section by clicking SAVE AND CONTINUE and click on Back to Dashboard in Summary section.
  • You can see Publishing Statusin the OAuth consent screen dashboard. Initially, it sets to Testing. Click on PUBLISH APP to push to production.

note

Testing - only test users can access the App. You can add up to 100 test users. See Unverified apps for more information.

Production - any user with a Google account can access the App.

Create Credentials

After configuring OAuth Consent Screen, click on Credentials in the left menu. And click Create Credentials at the top of the Credentials page. Google Supports three types of credentials API Key, Service Account, and OAuth 2.0. To know about authentication, please refer to the following: Guide to Google Drive Activities.

info

IntelliBuddies Google Context activity supports all the authentication supported by Google. Follow the below steps to create credentials for API Key, OAuth2.0 CLientIDs, and Service Account. See Setting up API keys, Setting up OAuth 2.0, and Creating and managing service accounts for more information.

note

To know about authentication, please refer to Guide to Google Drive Activities.

Creating API Key credentials

  • Click on Create credentials in Credentials page.
  • Select API key.
  • It creates an API key.

Creating OAuth 2.0 credentials

  • Click on Create credentials in Credentials page.
  • Select OAuth client id
  • Select Web application as the application type and give the name of your OAuth 2.0 client.
  • Add this url https://developers.google.com/oauthplayground in Authorised redirect URIs and click Create.
  • After creating OAuth 2.0 client id credential, open Google OAuth 2.0 Playground. Follow the below steps to generate a refresh token in Google OAuth 2.0 playground.

note

You can select the scopes based on your need. See Drive API v3 and Google Sheets API v4 scopes for more information.

Creating Service Account credentials

  • Click on Create credentials in Credentials page.
  • Select Service Account.
  • Give your service account a name and click Done.

info

You can enable domain-wide delegation if you have a Google workspace account and see user impersonation to know about impersonating a user in the domain.

note

If you delete your service account from Google Cloud Console, all the files and folders created by your service account will be lost.

info

IntelliBuddies Google Context activity supports all the authentication types which Google supports.

Follow the below steps to create credentials for API Key, OAuth2.0 CLientIDs, and Service Account. -See Setting up API keys, -Setting up OAuth 2.0, -Creating and managing service accounts for more information.

Enable Domain-Wide Delegation

info

You can enable domain-wide delegation if you have a Google workspace account and see user impersonation to know about impersonating a user in the domain.