通过PUSH收听事件删除 [英] Listening to Event deletion via PUSH

查看:79
本文介绍了通过PUSH收听事件删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google Calendar API,我的所有网站都将管理我的约会。
现在,我正在将Google日历集成到我的网站中,因此,如果我在自己的网站中添加或更新任何内容,则Google日历中的内容都会发生变化。如果我更改日历中的详细信息,则需要通过Push机制更新站点数据库。现在,我已经建立了用于更新事件详细信息的连接/机制,因此,如果我更改日历中的日期/时间,我的代码将通过Push更改该事件中Google日历中该事件的新日期/时间。

I'm working with Google calendar API, all my site is about to manage my appointments. Now I'm integrating Google calendar to my site, so if I add or update any from my site the same are going to change in my Google calendar. If I change details in calendar I need to get my site DB updated via Push mechanism. Now I've established connection/mechanism to update the event details so if I change the date/time in my calendar my code is changing my DB with respect to Google calendar new date/time on that event via Push.

但我不确定如何删除自己在日历中删除的任何事件,例如:

But I'm not sure how to delete any event which I delete in my calendar, for example:

如果我删除了我日历中的现有约会,也需要在我的数据库中删除它,因此它也不会在约会列表中列出。

If I delete an existing appointment in my calendar, that needs to be deleted in my DB too so it wont list on my appointment list.

有人可以帮助我如何跟踪从Google删除事件API?

Can someone help me how to track event deletion from Google API?

是否有一个要通知的标志?

Is there a flag to notify at all?

推荐答案

已删除事件的状态设置为已取消。

Deleted events have status set to "cancelled".

如果您还希望取消事件列表请求中包含的事件,则应指定showDeleted = true作为请求参数。

If you want to also have cancelled events included in the events list requests, you should specify showDeleted=true as a request parameter.

查看文档以获取详细信息
https://developers.google.com/google-apps/calendar/v3/reference/events/list

Check out the documentation for details https://developers.google.com/google-apps/calendar/v3/reference/events/list

这篇关于通过PUSH收听事件删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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