Google Calendar API

Google Calendar API

I am trying to learn how to use the Google Calendar API to add an event created by Zoho Creator form to a Google Calendar.

I have a main calendar set up in Google with subcalendars.  I would like to be able to add an event to the specific Google sub-calendar when the form is submitted in Creator.

I am currently using the Creator Calendar Feeds which work great, but I am not happy with the lag (calendar is not updated immediately).

I have seen this post: https://www.zoho.com/creator/help/script/create-event-in-google-calendar.html  however, I do not understand how to implement this. 

Basically my form will indicate the start and end date of the event, the name of the event and the calendar to be updated, I just need to create the event in the Google Calendar when the record is added/updated.

Any help would be greatly appreciated.