Tuesday, August 20, 2019

#726 OIC - using the Google Calendar adapter

Simple example of the above -













Pre-Requisites



First step is to do the pre-reqs defined in the Google adapter doc here

Navigate to https://console.developers.google.com/apis

Click on Enable APIs and Services












Select Google Calendar -













Once the API is enabled - then navigate to Credentials - creating a web app.












Credentials include -

Client ID
Client secret

You also need to set the re-direct URI to

https://yourOIC:443/icsapis/agent/oauth/callback























Create the OIC Integration 

Create the connection, leveraging client ID etc.




















Note the Scope: this can be set to either -
https://www.googleapis.com/auth/calendar or
https://www.googleapis.com/auth/calendar.readonly


This simple integration creates an event in my Google Calendar -

























Here is the configuration of the adapter -





















I map the following request fields -




















The response mapping is as follows -

Note: I have filtered on the mapped fields -















I activate and test -












The response is as follows -











I consult my google calendar for September 20th -






















Google Calendar API docs are here


No comments: