首页 > 解决方案 > Microsoft Graph:使用测试版获取用户日历事件

问题描述

我正在尝试使用 Microsoft Graph 测试版获取用户日历事件。我可以通过此请求获取日历信息:

https://graph.microsoft.com/beta/users/{user}/calendars/{calendarid}

然后我尝试通过这个请求访问特定事件

https://graph.microsoft.com/beta/users/{user}/calendars/{calendarid}/events/{eventId}

但我得到这个错误代码:

{
    "error": {
        "code": "NavigationNotSupported",
        "message": "Recursive navigation is not allowed after property 'Events' according to the entity schema.",
        "innerError": {
            "request-id": "2c73c51d-05b0-4499-9420-9247f4c8c576",
            "date": "2018-05-23T15:16:44"
        }
    }
}

这两个请求都适用于 Microsoft Graph REST API v1.0

有什么帮助吗?

标签: microsoft-graph-apibeta

解决方案


一旦你拥有了一个事件(不管它在哪个日历中),获取事件的方法id是这样的:

https://graph.microsoft.com/beta/users/{user}/events/{eventId}

推荐阅读