Microsoft Graph:使用Beta版获取用户日历事件 [英] Microsoft Graph: Get user calendar event with beta version

查看:157
本文介绍了Microsoft Graph:使用Beta版获取用户日历事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过Microsoft Graph beta版本获得用户日历事件. 我可以通过以下请求获取日历信息:

I´m trying to get an user calendar event with Microsoft Graph beta versión. I can get calendar info with this request:

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

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

Then I try to access to specific event through this request

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

但是我得到了这个错误代码:

But I get this error code:

{
    "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一起使用

Both requests works with Microsoft Graph REST API v1.0

有帮助吗?

推荐答案

一旦拥有id,获取事件(无论它在哪个日历中)的方式如下:

The way to get an event (regardless of which calendar it is in) once you have the id is like this:

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

这篇关于Microsoft Graph:使用Beta版获取用户日历事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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