【发布时间】:2015-02-19 18:11:01
【问题描述】:
我在这个帖子Office365 REST v1.0 API calendar does not return recurrences中报告了同样的问题
答案说使用https://outlook.office365.com/api/v1.0/Me/CalendarView 而不是https://outlook.office365.com/api/v1.0/Me/Events 来获取所有事件(包括系列事件)
我的问题是我正在使用 OutlookServicesClient 来调用 de O365 API。这就是我所说的“.../事件”:
var eventsResults = await (from i in outlookServicesClient.Me.Events
where i.Start >= start && i.Start <= end
orderby i.Start
select i).Take(10).ExecuteAsync();
我尝试以这种方式调用“.../calendarview”:
var eventsResults = await (from i in outlookServicesClient.Me.CalendarView
where i.Start >= start && i.End <= end
orderby i.Start
select i).Take(10).ExecuteAsync();
我收到一个异常提示“需要 startdatetime 和 enddatetime”。看起来库没有发送参数,我的 where 子句正在转换为 $filter OData 查询
有没有办法使用 OutlookServicesClient 库调用 CalendarView?
谢谢
【问题讨论】:
-
找到答案了吗?
-
没有。我没有找到解决办法。我正在使用outlookServicesClient.Me.Calendar.Events。 :(
标签: exchangewebservices office365