我可以使用MS Graph API检索Outlook会议室日历视图吗?

时间:2018-11-29 13:27:20

标签: microsoft-graph

使用Graph API,我们已经成功地检索了用户日历(代表用户)的日历视图。现在,用户还希望能够检索会议室日历。所以我尝试了以下方法:

https://graph.microsoft.com/beta/users/room1@ourdomain.com/calendarView

https://graph.microsoft.com/v1.0/users/room1@ourdomain.com/calendarView

https://graph.microsoft.com/beta/users/room1@ourdomain.com/events

https://graph.microsoft.com/v1.0/users/room1@ourdomain.com/events

不幸的是,它们全部返回一个ErrorServiceUnavailable错误。

应用程序权限和OAuth2范围设置为:openid email profile offline_access https://graph.microsoft.com/Calendars.Read https://graph.microsoft.com/Calendars.Read.Shared https://graph.microsoft.com/User.Read https://graph.microsoft.com/User.ReadBasic.All https://graph.microsoft.com/User.Read.All,因此这不是问题。

我做错什么了吗?还是根本不支持?

2 个答案:

答案 0 :(得分:1)

https://graph.microsoft.com/v1.0/users/room1@ourdomain.com/calendarView是我成功使用的方法。我在权限方面遇到了问题,并向我的应用程序授予了Azure中的所有权限,并且它对我有用。我无法确定具体的权限,但是为了进行测试,我解决了我遇到的问题。

答案 1 :(得分:0)

  

我做错什么了吗?还是根本不支持?

对于您当前的问题:显然您做错了或服务方暂时的异常。支持该API。

您应该提供您使用过的代码,然后根据代码,我们可以检查您这边有什么问题。