我已经成功地对事件资源的更改进行了下标,请求主体为:
{ "@odata.type":“资源”:"me/events“、"NotificationURL":”.“、"ChangeType":”已创建、更新、删除“}
尽管在修改用户默认日历中的事件时,我得到了预期的web钩子通知,但在修改同一用户的其他日历中的事件时,没有收到任何web钩子通知。
我是做错了什么,还是只是个错误或者只是一种没有记录的行为?
发布于 2016-03-28 21:36:15
要订阅其他日历的通知,需要将"Resource“更改为"me/ calendars /{calendar_id}/events”。
获取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
复制