Google Calendars API - Listener for new calendar events or updates to existing events?

扶醉桌前 提交于 2021-01-29 09:17:46

问题


I have a Python script that will take all of the events from a Google Calendar, format the text and send a post request to a website, which works fine.

Currently, I would have to open it each time an event is added or changed. I am wondering how can I setup a listener so that the function will fire whenever there are new calendar events or updates to existing ones? I have looked into the documentation but have not been able to find any good solution.

Thank you!


回答1:


You should make use of the webhooks to listen to any updates in the events. Read here, https://developers.google.com/calendar/v3/push



来源:https://stackoverflow.com/questions/60406976/google-calendars-api-listener-for-new-calendar-events-or-updates-to-existing-e

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!