microsoft-graph-api - 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
有什么帮助吗?
解决方案
一旦你拥有了一个事件(不管它在哪个日历中),获取事件的方法id
是这样的:
https://graph.microsoft.com/beta/users/{user}/events/{eventId}
推荐阅读
- python - 通过多个列表连接最小/最大文件名
- mysql - Vault - 如何为 mysql 创建动态机密并仅授予特定数据库的权限
- excel - 有没有办法计算到某个数字?
- tomcat - 在tomcat中解密LTPA2令牌并实现SSO
- csv - 使用 tf.data.experimental.make_csv_dataset 获取时间序列数据
- php - After user logging in UPDATE session id in database
- javascript - 如何使用 Tabulator 限制可编辑表中输入的最大长度?
- python - SQL炼金术 | 多个一对一和一对多关系
- javascript - 当我想打印数组中的所有项目时,javascript getItem 打印最后一个数组
- php - 如何在 php/html 中获取当前和下个月的日期?