【发布时间】:2015-09-16 15:40:05
【问题描述】:
在 Office 365 API 中,我没有找到任何单一服务可以在一次调用中返回用户日历中的所有事件。 如果用户有 3 个日历,则需要通过日历 ID 进行三个调用。
首先需要通过调用获取日历ID
https://outlook.office.com/api/v1.0/me/calendars
那么对于每个Calendar Id,需要通过调用来获取事件
GET https://outlook.office.com/api/{version}/me/calendars/{calendar_id}/calendarview?startDateTime={start_datetime}&endDateTime={end_datetime}
如果有任何单次通话,则将减少往返次数。
感谢您的帮助。
【问题讨论】: