No outlook webhook notification for events in secondary calendars

假如想象 提交于 2019-12-24 16:09:42

问题


I have successfully subscribed to changes of the events resource with a request body of:

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

Although I get the expected webhook notification when modifying an event in the user's default calendar, I don't get any webhook notifications when modifying events in other calendars of the same user.

Am I doing something wrong or is it a bug or just an undocumented behaviour?


回答1:


To subscribe the notification of other calendars, you need to change the the "Resource" to "me/calendars/{calendar_id}/events".

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

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


来源:https://stackoverflow.com/questions/36270797/no-outlook-webhook-notification-for-events-in-secondary-calendars

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