Google 日历 API - 监听新日历事件或更新现有事件?

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

我有一个 Python 脚本,可以从 Google 日历中获取所有事件,格式化文本并向网站发送 post 请求,效果很好。

目前,每次添加或更改事件时我都必须打开它。我想知道如何设置一个侦听器,以便在有新的日历事件或对现有事件进行更新时触发该函数?我查看了文档,但未能找到任何好的解决方案。

谢谢!

您应该使用网络钩子来监听事件中的任何更新。读到这里,https://developers.google.com/calendar/v3/push