Google Calendar API + email notification ics file

ぃ、小莉子 提交于 2019-12-10 11:35:31

问题


I'm creating events on google calendar using the Google Calendar API, which is working fine. When I modify one of those events within Google Calendar, Google can email me an even update with an .ics file.

Is there a way determine the eventid via the email or ics file, and tie it back to the eventid when i created the event using the API?

For example, I want to automatically receive event change emails sent from Google Calendar, and update the event in my database (where I store the eventid returned from adding the event using the API)


回答1:


In the body of the email, you should have:

<meta itemprop=3D"eventId/googleCalendar" content=3D"[your event id here]"/>

However, parsing email is not the best way to do this. The preferred method is laid out here: https://developers.google.com/google-apps/calendar/v3/sync

If you're needing/wanting a push method, that is laid out here: https://developers.google.com/google-apps/calendar/v3/push



来源:https://stackoverflow.com/questions/10846750/google-calendar-api-email-notification-ics-file

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