获取日历 View 的文档 ( https://msdn.microsoft.com/en-us/office/office365/howto/sync-calendar-view ) 暗示 SeriesMaster
事件将在结果中返回,以及个别事件和异常。
文档说明(并通过示例显示):
Here's the information you need to know about how recurring events are handled for calendar view synchronization.
- The service performs meeting expansion and sends the series master event and all of the event instances within the time window.
- The series master event contains the recurrence pattern and the time window for the series.
- The event instances contain their start and end time information as well as information about event occurrence exception.
然而,在实际使用这个端点时,我们只收到了发生/异常,而不是重复“主”。事件是完整的模型,不像更薄的模型只包含开始/结束,如文档状态。
能够获取同步 SeriesMaster 事件以及系列的异常(GCal
singleEvents=false
可能)对我们来说很重要,这样我们就可以存储这些信息并在客户端执行重复扩展。我在这里做错了什么?
请求(已解码以提高可读性):
GET https://outlook.office365.com/api/v1.0/Users(...)/calendarview?$sort=startDateTime desc&$top=100&startDateTime=2016-01-01T22:12:34+0000&endDateTime=2016-03-10T23:12:34+0000
当我们尝试在 EWS 中获取 CalendarView 时,也存在类似的问题。
最佳答案
Outlook 日历同步 REST API 对我来说很好用。当您删除 $top 查询参数时,API 对您有用吗?
因为 Outlook 日历同步 REST API 不支持 $filter、$count、$select、$skip、$top 和 $search 查询参数。
这是同步 API 的链接,供您引用:
https://msdn.microsoft.com/office/office365/api/calendar-rest-operations#Syncevents
以下是日历同步的回复供您引用:
关于ms-office - 使用 Office 365 API 获取 CalendarView 时未返回 SeriesMaster,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35708103/