有沒有辦法獲得重複事件例外?例如,我有一個沒有結束日期的Google週期性事件,並且用戶在一個實例中發生了異常。理論上有無數的例子。是否有可能只得到那些被改變的東西?如何僅檢測更改的實例?谷歌日曆週期性事件僅從模式中獲得例外
這是與Outlook同步所需的(在Outlook中,只能從規則中獲得例外)。
使用option singleEvent = true獲取google事件可能返回無數個實例?
有沒有辦法獲得重複事件例外?例如,我有一個沒有結束日期的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