没有辅助日历中的事件的Outlook Webhook通知 [英] No outlook webhook notification for events in secondary calendars

查看:117
本文介绍了没有辅助日历中的事件的Outlook Webhook通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功已订阅以更改事件资源请求正文为:

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"
}

虽然在修改用户默认日历中的事件时会收到预期的Webhook通知,但在修改同一用户的其他日历中的事件时却没有任何Webhook通知.

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?

推荐答案

要订阅其他日历的通知,您需要将资源"更改为我/日历/{日历_id}/事件".

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

获取 https://outlook.office.com/api/v2. 0/我/日历

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

这篇关于没有辅助日历中的事件的Outlook Webhook通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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