没有关于辅助日历中事件的Outlook webhook通知

时间:2016-03-28 20:40:42

标签: outlook office365 outlook-restapi

我已成功subscribed更改了事件资源,请求正文为:

{
  "@odata.type": "#Microsoft.OutlookServices.PushSubscription",
  "Resource": "me/events",
  "NotificationURL": "...",
  "ChangeType": "Created, Updated, Deleted"
}

虽然在修改用户默认日历中的事件时收到了预期的webhook通知,但在修改同一用户的其他日历中的事件时,我不会收到任何webhook通知。

我做错了什么,或者是一个错误还是一个没有记录的行为?

1 个答案:

答案 0 :(得分:1)

要订阅其他日历的通知,您需要更改"资源"到" me / calendars / {calendar_id} / events"。

获取https://outlook.office.com/api/v2.0/me/calendars

enter image description here

{
  "@odata.type": "#Microsoft.OutlookServices.PushSubscription",
  "Resource": "me/calendars/{calendar_id}/events",
  "NotificationURL": "...",
  "ChangeType": "Created, Updated, Deleted"
}