Office365 REST v1.0 API日历不返回重复 [英] Office365 REST v1.0 API calendar does not return recurrences

查看:75
本文介绍了Office365 REST v1.0 API日历不返回重复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Microsoft Office团队

The Microsoft Office team annouced today the availability of a REST API across the Office365 suite, as well as guides for writing apps across the different app ecosystems.

要评估API,我只想获取今天的事件列表.

To evaluate the API, I simply wanted to get a listing of my events for today.

新API API

基本的GET非常简单:

The basic GET is quite simple:

https://outlook.office365.com/api/v1.0/me/events

这将返回日历事件列表.要获得特定的一天,我们应该能够使用

This gives back listing of calendar events. To get a specific day, we should be able to use OData Query Parameters.

例如:

https://outlook.office365.com/api/v1.0/me/events?$filter=End gt 2014-10-28 and Start lt 2014-10-29

这给出了一个简短得多的列表,但这并不完全正确.

This gives a much shorter list, but it's not quite right.

在该时间范围内未创建任何重复发生的事件.

There are no recurring events that weren't created in that timeframe.

这似乎是预览(EWS/OData)API的已知问题:

This seems to be a known issue with the preview (EWS/OData) API:

  • Office 365 API recurring meetings not always returning
  • Office 365 API EWS calendar not expanding recurring events

上面的问题中提到了一些变通方法,但是有一点请注意,API不断变化,这些方法可能在v1.0版本中不起作用.此外,这些变通办法似乎仍然不适用,这就是为什么这个问题不重复的原因.

There are some work-arounds mentioned in the above isssues, but there are notes that the API is in flux and that those approaches may not work in the v1.0 release. Furthermore those work-arounds don't seem to still apply, which is why this question is not a duplicate.

那么,如何通过Office365 REST v1.0 API获取当今的所有事件,包括重复发生?

So, how can one get all of today's events, including recurrences, via the Office365 REST v1.0 API?

推荐答案

感谢您对Office 365 REST API的关注.您是正确的,在V1.0中,事件的GET返回单实例会议和系列主文件,并且不会扩展系列.我们有两种扩大复发率的方法.我们刚刚检查了一下,似乎文档丢失了,我们将尽快对其进行更新.在此期间,以下是应解除阻止您的信息:

Thanks for your interest in Office 365 REST APIs. You are correct that, in V1.0, GET on events returns single instance meetings and series masters, and doesn't expand series. We have two ways to expand recurrences. We just checked and it looks like that documentation is missing and we will update it ASAP. In the meantime, here is the info that should unblock you:

CalendarView::您可以使用此API来获取给定时间范围内所有事件(单个实例和一系列事件)的列表.时间是在UTC中指定的,因此您必须根据用户的时区要求正确的时间.时区支持在我们的优先列表中处于重要位置,并将很快推出.这是获取10月1日至31日PDT事件列表的示例请求:

CalendarView: You can use this API to get list of all events (single instances and occurrences of series) for a given timeframe. Timeframe is specified in UTC, so you have to ask for the right times based on your user's time zone. Time zone support is high on our priority list and will be coming soon. Here is an example request to fetch list of events for October 1-31 PDT:

请注意:我们正在修复一个错误,该错误无法在响应中导航下一个"链接,但已经在进行修复.

Please note: We are in the process of fixing a bug where navigating the "next" link in the response doesn't work, but a fix is already on its way.

特定会议系列的实例:您可以使用此API在指定时间段内扩展特定会议系列.再一次,时间在UTC.这是扩展特定会议系列以获取PDT 10月1日至31日实例列表的示例:

Instances of a Specific Meeting Series: You can use this API to expand a specific meeting series for a specified time period. Once again, times are in UTC. Here is an example to expand a specific meeting series to get list of instances for October 1-31 PDT:

如果您有任何疑问或需要更多信息,请告诉我.

Please let me know if you have any questions or need more info.

谢谢

Venkat

这篇关于Office365 REST v1.0 API日历不返回重复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆