Office365统一API,从Events ID获取日历ID [英] Office365 Unified API, get calendar ID from Events ID

查看:50
本文介绍了Office365统一API,从Events ID获取日历ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个事件都属于一个日历,因此当我从 Outlook API 管理收到有关日历事件的 webhook 时,我希望也收到此事件的容器 ID,但没有.我得到的关于这个日历事件的信息很少,但仍然有一个 ID.问题是如何获取保存此事件的日历本身的 ID?

Every Event belongs to a Calendar, so when I receive a webhook from Outlook API management about a calendar event, I expect to also receive the container ID of this Events, but no. I get very little information about this calendar event, but still there is an ID. The problem how to get the ID of the calendar itself that holds this event?

我使用统一的 API 来查询这个,到目前为止我得到的只是

I use unified API for querying this, and all I get so far is

GET https://graph.microsoft.com/beta/me/Events/< ID >

但你猜怎么着,在这个响应中我找不到日历 ID.<生病 >

But guess what, nowhere inside this response do I find the calendar ID. < sick >

谁能告诉我如何从事件 ID 中检索日历 ID?

Can anyone tell me how to retrieve the calendar ID from an Event ID?

推荐答案

是的,您无需使用 Beta API 即可实现这一目标.

Yes you achive this without using Beta API.

https://graph.microsoft.com/v1.0/me/events/<event-id>

您也可以在此应用过滤器

you can also apply a filter in this

https://graph.microsoft.com/v1.0/me/events/<eventid>/?startDateTime=<startDate>&endDateTime=<endDate>

这篇关于Office365统一API,从Events ID获取日历ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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