Microsoft Graph API BETA - retrieving calendar for event returns unexpected calendar [duplicate]

痞子三分冷 提交于 2020-01-06 01:55:07

问题


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)

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

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?


回答1:


I think this issue is a duplicate of

Office365 Unified API, get calendar ID from Events ID (Office365 Unified API, get calendar ID from Events ID)

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.



来源:https://stackoverflow.com/questions/53444486/microsoft-graph-api-beta-retrieving-calendar-for-event-returns-unexpected-cale

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!