In order for your agents to connect their Google Calendar to LatePoint – you need to create a Google API project for your website to generate OAuth credentials.
Creating new Google API project
To start visit Google Developer Console https://console.developers.google.com and click Create to create new project:
![](http://192.241.254.135/wp-content/uploads/2019/04/Image-2019-04-13-at-9.56.15-PM-1024x206.png)
Give your project any name you want and click “create” button:
![](http://192.241.254.135/wp-content/uploads/2019/04/Image-2019-04-14-at-3.37.27-PM-1024x480.png)
Enable Calendar API:
![](http://192.241.254.135/wp-content/uploads/2019/04/Image-2019-04-14-at-3.30.19-PM-1024x252.png)
Search for “calendar” and click on Google Calendar API:
![](http://192.241.254.135/wp-content/uploads/2019/04/Image-2019-04-13-at-9.59.19-PM-1024x308.png)
Enable Google Calendar API
![](https://wpdocs.latepoint.com/wp-content/uploads/2022/05/CleanShot-2022-05-07-at-12.15.06@2x-1024x634.png)
Now you need to create credentials for your project:
![](https://wpdocs.latepoint.com/wp-content/uploads/2022/05/CleanShot-2022-05-07-at-12.16.49@2x-1024x436.png)
Creating Credentials
Creating credentials for your application is a 5 step process, at the end of the process you will get your generated client ID and client secret. Follow these steps to create credentials for your application:
1. Credential Type
Select User Data and click next:
![](https://wpdocs.latepoint.com/wp-content/uploads/2022/05/CleanShot-2022-05-07-at-12.24.02@2x-1024x511.png)
2. OAuth Consent Screen
Enter your application information, which will be shown on a consent screen when your agents are connecting their Google Calendar:
![](https://wpdocs.latepoint.com/wp-content/uploads/2022/05/CleanShot-2022-05-07-at-12.26.41@2x-1024x622.png)
3. Scopes
You need to add scopes that your application will collect from agents who sync their calendars.
![](https://wpdocs.latepoint.com/wp-content/uploads/2022/05/CleanShot-2022-05-07-at-12.33.25@2x-1024x453.png)
Search for “calendar” and pick Google Calendar API scope (!important, pick the one that says …/auth/calendar). Scroll down and click “Update” button to save it.
![](https://wpdocs.latepoint.com/wp-content/uploads/2022/05/CleanShot-2022-05-07-at-12.35.50@2x-1024x611.png)
You should see that scope being added to the list of “Your sensitive scopes”. Now hit Save and Continue button
![](https://wpdocs.latepoint.com/wp-content/uploads/2022/05/CleanShot-2022-05-07-at-12.38.23@2x-1024x493.png)
4. OAuth Client ID
Select “Web Application” for the Application Type, then add your site URI in “Authorized JavaScript Origins” section:
![](https://wpdocs.latepoint.com/wp-content/uploads/2022/05/CleanShot-2022-05-07-at-12.46.03@2x-1024x630.png)
Note: It may take 5 minutes to a few hours for settings to take effect
5. Your Credentials
You can now download your credentials in a json file
![](https://wpdocs.latepoint.com/wp-content/uploads/2022/05/CleanShot-2022-05-07-at-12.54.56@2x-1024x590.png)
Open the .json file your downloaded and search for client_id and client_secret values, copy them (do NOT include quotes) and paste into your LatePoint Google Calendar Settings:
![](https://wpdocs.latepoint.com/wp-content/uploads/2022/05/CleanShot-2022-05-07-at-13.04.23@2x-1024x531.png)
![](https://wpdocs.latepoint.com/wp-content/uploads/2022/05/CleanShot-2022-05-07-at-13.12.38@2x-1024x502.png)
External vs Internal User Type
There are two user types available in Google Application: Internal and External. By default Google sets your application’s user types to “Internal”. You can read more about differences between them by clicking here.
Important!
Authorizations by a test user will expire seven days from the time of consent. If your OAuth client requests an offline
access type and receives a refresh token, that token will also expire. It means that your external test agents will have to “Sign in with Google” every 7 days to be able to automatically sync their calendars.
Testing mode also comes with some Rate limitations. If you are having trouble with auto-syncing calendars – make sure you are not hitting your Rate limits:
![](https://wpdocs.latepoint.com/wp-content/uploads/2022/05/CleanShot-2022-05-07-at-13.49.40@2x-1024x764.png)