丰富的通知Microsoft Graph

时间:2018-12-06 10:20:19

标签: office365 microsoft-graph webhooks

我想使用Microsoft graph API订阅丰富的通知来处理日历事件。 以下是我用来进行订阅呼叫的有效负载:

{
    "changeType": "created,updated,deleted",
    "notificationUrl": "https://notification.com/api/webhook",
    "resource": "Users('room_mailbox@abc.com')/events?$select=subject,start,end,organizer",
    "expirationDateTime": "2018-12-06T18:23:45.9356913Z",
    "clientState": "secretClientValue"
}

我得到的答复是:

{
"error": {
    "code": "InvalidRequest",
    "message": "IncludeProperties flag should be true in payload to support rich notifications.",
    "innerError": {
        "request-id": "b281f496-6121-40d0-9f48-452922170598",
        "date": "2018-12-06T09:32:46"
    }
}

}

使用有效载荷:

{
    "changeType": "created,updated,deleted",
    "notificationUrl": "https://notification.com/api/webhook",
    "resource": "Users('room_mailbox@abc.com')/events,
    "expirationDateTime": "2018-12-06T18:23:45.9356913Z",
    "clientState": "secretClientValue", 
    "includeProperties" : true
}

我成功创建了订阅,但通知中包含默认数据。

我已经使用Outlook v2 API使用了丰富的通知。但是找不到有关Microsoft Graph API的任何文档。

1 个答案:

答案 0 :(得分:1)

通过Microsoft Graph的日历事件尚不支持丰富通知。

我们将改善错误消息。