Google Calendar API +电子邮件通知ics文件 [英] Google Calendar API + email notification ics file

查看:127
本文介绍了Google Calendar API +电子邮件通知ics文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google Calendar API在Google Calendar上创建事件,效果很好. 当我在Google日历中修改其中一个事件时,Google可以通过电子邮件向我发送带有.ics文件的甚至更新.

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.

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

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?

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

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)

推荐答案

在电子邮件正文中,您应该具有:

In the body of the email, you should have:

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

但是,解析电子邮件并不是实现此目的的最佳方法.首选方法如下: https://developers.google.com/google -apps/calendar/v3/sync

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/push

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

这篇关于Google Calendar API +电子邮件通知ics文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆