我正在尝试创建订阅以接收有关Office365日历更改的通知 . 我已经使用过Outlook Notitication API,但是遇到了Microsoft Grap API的问题
我尝试使用带有 Headers 和正文的Http Post创建订阅https://graph.microsoft.com/beta/subscriptions:
-
Headers :Content-Type:application / json;授权:Bearer
-
身体:
{
"resource":"me/calendars",
"notificationUrl":"sample notification url",
"changeType":"Created",}
在我的通知网址中,我设置为在收到验证请求时发送带有验证令牌值的响应
最后,我收到的结果:
{
"error":{
"code":"ExtensionError",
"message":"There was an error processing a storage extension.",
"innerError":{
"request-id":"6c563931-511d-415d-9c04-c07f25d45b1f",
"date":"2016-03-20T08:10:32"
}
}
}
我想知道我做错了什么或者这是MS Grap API的内部错误 . 谁能帮我?预先感谢
1 回答
用于日历事件的正确资源是“我/事件” . 我们将来会尝试获得更好的错误消息 .