如何使用Zend_Gdata删除重复出现的事件 [英] How to delete single occurrence of recurring event using Zend_Gdata

查看:72
本文介绍了如何使用Zend_Gdata删除重复出现的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理Google日历重复活动.我创建了一个包含10个实例的重复事件,现在我要使用Zend_Gdata删除该重复事件的任何单个实例,而不是完整事件.

I am working with Google calendar recurring events. I created a recurring event with ten instances, now by using Zend_Gdata i want to delete any single instance of this recurring event not the complete event.

以下行将删除完整的重复事件.

The following line delete the complete recurring event.

$ gdata-> delete($ feedEntry-> getEditLink()-> href);

$gdata->delete($feedEntry->getEditLink()->href);

但是我只想删除一个实例...

But i want to delete only one instance ...

任何人都可以在这方面帮助我.

Can any one help me in this regards.

我非常感谢!

等待您的回复!

推荐答案

我建议您从GData迁移,因为API将于11月关闭( https://developers.google.com/google-apps /calendar/).在v3上,您可以通过调用delete(instance.getId())来删除重复事件的实例,在该实例中,您可以使用instance()调用来检索实例ID.

I propose you migrate off GData as the API will be shut down in November (http://googleappsupdates.blogspot.ch/2014/06/calendar-gdata-api-google-calendar.html) and take a look at the v3 api (https://developers.google.com/google-apps/calendar/). Once on v3, you can delete an instance of a recurring event by calling a delete(instance.getId()) where you can retrieve the instance id using the instances() call.

这篇关于如何使用Zend_Gdata删除重复出现的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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