使用 Office 365 REST 读取辅助日历 API

Read secondary calendars using Office 365 REST API

使用 Office 365 REST API 我可以轻松阅读给定帐户的主日历。 here.

给出了一个使用 PHP 的简单示例

但是我如何阅读下方屏幕截图中显示的 "test" 等辅助日历?来自辅助日历的事件不会显示在 API 请求中。不知何故,我必须告诉 API 我想访问哪个日历(可能有很多日历)是有道理的,但是我应该在 API 调用中的何处或如何执行此操作?

我找到了答案here:

Get a collection of series master and single instance events from the user's primary calendar (../me/events) or from a different calendar.

GET https://outlook.office.com/api/v2.0/me/calendars/{calendar_id}/events

其中 {calendar_id} 是您要访问的日历的 ID。

您可以在中找到如何获取ID。

有效。