与 Google 日历同步活动
我正在编写一项需要用户日历上的最新信息的服务。然而,除了定期轮询之外,我还没有找到其他方法来接收来自 GCal 的更新。是否可以设置某种推送通知或事件列表差异传输?
I'm writing a service that needs an up-to-date information on a user's calendar. However, I have yet to find a way other than regular polling to receive updates from GCal. Is it possible to set up some kind of push notification or an event list diff transmission?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
(免责声明:我在 Google 工作,负责 Google Mobile Sync,特别是日历同步,但在这个答案以及我在这个网站上写的所有其他内容中,我是以个人身份撰写的,并不代表 Google。)
恐怕我相信有一个公共通知 API。据我所知,您需要进行民意调查。但是,您当然可以要求自特定时间戳以来进行更改;您不必每次都下载整个日历。
其次:祝你好运!在我开始研究日历之前,我当然没有意识到日历有多么复杂......
(Disclaimer: I work for Google, and I worked on Google Mobile Sync, specifically calendar sync, but in this answer and everything else I write on this site, I am writing as an individual and not representing Google.)
I don't believe there's a public notification API, I'm afraid. As far as I'm aware, you will need to poll. However, you can of course ask for changes since a particular timestamp; it's not like you have to download the whole calendar every time.
On a secondary note: good luck! I certainly didn't appreciate just how complicated calendaring was until I started working on it...