简体   繁体   English

Google Calendar API +电子邮件通知ics文件

[英]Google Calendar API + email notification ics file

I'm creating events on google calendar using the Google Calendar API, which is working fine. 我正在使用Google Calendar API在Google Calendar上创建事件,效果很好。 When I modify one of those events within Google Calendar, Google can email me an even update with an .ics file. 当我在Google日历中修改其中一个事件时,Google可以通过电子邮件向我发送带有.ics文件的甚至更新。

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? 有没有一种方法可以通过电子邮件或ics文件确定eventid,并在使用API​​创建事件时将其绑定回eventid?

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) 例如,我想自动接收从Google日历发送的事件更改电子邮件,并在数据库中更新事件(我将使用API​​添加事件后返回的事件ID存储在数据库中)

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 首选方法如下所示: 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 : //developers.google.com/google-apps/calendar/v3/push

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM