Trigger script on Google calendar event

Shubhra picture Shubhra · Jan 23, 2014 · Viewed 7.6k times · Source

I want to trigger some script when new calendar event is created in Google Calendar (say calling some rest API that enters event information to my database). I do not want any kind of UI that triggers the script.
Is it possible to achieve this using Google gadget since I do not want any UI? I would really appreciate the help as I am new to Google API.

Thanks a lot
Shubhra

Answer

Michał Ziober picture Michał Ziober · Jan 23, 2014

Calendar API has something like notifications. See this link: Push Notifications. From documentation:

The Google Calendar API provides push notifications that let you watch for changes to resources. You can use this feature to improve the performance of your application. It allows you to eliminate the extra network and compute costs involved with polling resources to determine if they have changed. Whenever a watched resource changes, the Google Calendar API notifies your application.