谷歌日历周期性事件仅从模式中获得例外

问题描述:

有没有办法获得重复事件例外?例如,我有一个没有结束日期的Google周期性事件,并且用户在一个实例中发生了异常。理论上有无数的例子。是否有可能只得到那些被改变的东西?如何仅检测更改的实例?谷歌日历周期性事件仅从模式中获得例外

这是与Outlook同步所需的(在Outlook中,只能从规则中获得例外)。

使用option singleEvent = true获取google事件可能返回无数个实例?

如果您授予singleEvents =“true”,它将为events.list中的循环事件提供所有实例。当你只想得到异常,那么在events.list中不要给singleEvents =“true”,那么你会发现只有定期事件(带有out实例)和异常。

以下是样本响应。我试着在API explorer

summary": "Test recu",//recurring event 
"creator": { 
    "email": "[email protected]", 
"displayName": "xxxxx", 
"self": true 
}, 
"organizer": { 
"email": "[email protected]", 
"displayName": "xxxx", 
"self": true 
}, 
    "start": { 
"dateTime": "2015-08-28T09:30:00-07:00", 
"timeZone": "America/Los_Angeles" 
}, 
"end": { 
"dateTime": "2015-08-28T10:30:00-07:00", 
"timeZone": "America/Los_Angeles" 
    }, 
    "recurrence": [ 
    "RRULE:FREQ=WEEKLY;BYDAY=TH,FR" 


summary": "Test recu",//changed instance that is exception 
"creator": { 
"email": "[email protected]", 
"displayName": "xxxx", 
"self": true 
}, 
"organizer": { 
"email": "[email protected]", 
"displayName": "xxxx", 
"self": true 
}, 
"start": { 
"dateTime": "2015-09-03T10:00:00-07:00", 
"timeZone": "America/Los_Angeles" 
}, 
"end": { 
"dateTime": "2015-09-03T11:00:00-07:00", 
"timeZone": "America/Los_Angeles" 
}, 

在Outlook对象模型中,RecurrencePattern对象公开的例外集 - 看到https://msdn.microsoft.com/en-us/library/office/ff869544.aspx