Microsoft Graph API BETA-检索事件的日历返回意外的日历 [英] Microsoft Graph API BETA - retrieving calendar for event returns unexpected calendar
问题描述
在使用Microsoft Graph API BETA版本(
I ran into an issue when working with the Microsoft Graph API BETA version (https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/beta-overview)
我通过调用API端点( https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/event_get#http-request )
I retrieve event details by calling the API endpoint (https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/event_get#http-request)
https://graph.microsoft.com/beta/me/beta/me/events/{id}
which returns me an event resource as described here: https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/event
以后我想通过请求获取日历的详细信息
When I want to fetch it's calendar details afterwards by requesting
https://graph.microsoft.com/beta/me/events/{id}/calendar
它会导致一个有效的日历响应,其中包含我的默认日历,而不是直接在
it results in a valid calendar response containing my default calendar instead of the calendar this item belongs to when working directly in https://outlook.office.com/owa/?path=/calendar/view/Month
还有其他人遇到此问题吗?尝试获取事件资源的日历信息时使用API的正确方法是什么?
Did anyone else run into this issue? What's the correct way to use the API when trying to fetch the calendar information for an event resource?
推荐答案
我认为此问题与
Office365 Unified API,从事件ID获取日历ID (由@GiedriusL(
which was answered by @GiedriusL (Office365 Unified API, get calendar ID from Events ID)
在某些情况下可能还可以,但是如果您正在使用组日历,那将无济于事.
It could be OK in some scenarios, but if you are playing with group calendars, then it will not help.
这篇关于Microsoft Graph API BETA-检索事件的日历返回意外的日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!