---
title: Integrating with Google APIs
slug: integrating-with-google-apis
docTags: 
createdAt: 2020-04-16T11:12:54.000Z
---

Pathfix allows you to easily add end-user OAuth based integration, handling authorization and enable communication between your app and any Google API in just a few minutes. The following documentation takes the example of Google Task, but you can follow the same process and activate any other Google Product API.&#x20;

Before proceeding, you will need to create an account with Google Cloud Platform and register your application. Please refer the developer documentation provided by Google Cloud Platform.

**Important Note:&#x20;**&#x46;or restricted scopes, Google requires a mandatory security assessment that is charged by Google. This is more specific to Products like Google Mail. You can read more about this here: [Link](https://medium.com/@prasanthmj/google-restricted-api-scopes-require-75k-yearly-fees-a23cad053a4c) [Link 2](https://groups.google.com/g/google-apps-script-community/c/ZS2_NCEzdQ8?pli=1)



## Enable OAuth in Google Cloud Platform

Access your Application on Google Cloud Console&#x20;

Once you have added your application, you will need to navigate to Credentials

- Navigate to `Create Credentials`
- Select `OAuth Client ID`



![](https://archbee-doc-uploads.s3.amazonaws.com/E6H_--BmYJWG_yGaOUOxt/B8j0sDTHYb_hDgncOYpn7_google1.png)



- Navigate to `Authorised redirect URI's` under `Restrictions `
- Add the Pathfix Redirect URI `https://labs.pathfix.com/integrate/command` under the Redirect URI section
- Hit `Create`



![](https://archbee-doc-uploads.s3.amazonaws.com/E6H_--BmYJWG_yGaOUOxt/zn4e4924dg40eja8yHUk9_google2.png)



### Enable Google Tasks API

- Go to Google API Dashboard here: [https://console.cloud.google.com/projectselector2/apis/dashboard?supportedpurview=project](https://console.cloud.google.com/projectselector2/apis/dashboard?supportedpurview=project)
- Click on `Libraries` on the left pane
- Search for `Google Tasks` and choose `Cloud Tasks API`



![](https://archbee-doc-uploads.s3.amazonaws.com/E6H_--BmYJWG_yGaOUOxt/DRAvbIoGnoRgelP7dpaXr_image.png)



- Click on **Enable** &#x20;



![](https://archbee-doc-uploads.s3.amazonaws.com/E6H_--BmYJWG_yGaOUOxt/p5miHN-8c8hF0pHL-gPUt_image.png)



### Add Google Consent

You will need to add the Pathfix URL in the Google consent page to provide access.

- Visit: [https://console.cloud.google.com/apis/credentials/consent/edit](https://console.cloud.google.com/apis/credentials/consent/edit)
- Enter the Pathfix URL `pathfix.com` under `Authorised domains` (do not enter 'http' or 'https')





![](https://archbee-doc-uploads.s3.amazonaws.com/E6H_--BmYJWG_yGaOUOxt/a25FQZ6Tv0CNovEUVj2b4_google-consent.png)



## Setup in Pathfix

- Login to your Pathfix account and click on `Add Application`
- Add the name of your SaaS and hit `Save`
- Select Google from the list of providers to integrate with. You can change the Display `Name` and `Description`.&#x20;
- Enter the `Client ID` and `Client Secret` generated from Google



![](https://archbee-doc-uploads.s3.amazonaws.com/E6H_--BmYJWG_yGaOUOxt/CV6T_q-hoQ_eOJWCkJZR2_Google.png)





## Adding Integration To Your SaaS

There are 2 steps to adding the integration to your SaaS

1. [End-user authorization](docId\:MsCMNgUGRsGrzSCMLCiXf)
2. [Enable pass-through API](docId\:JiDAxEPNR2Owz8w4_JpBK)







Need help? Reach out to us at support\@pathfix.com and we would be happy to assist!



