首页 文章

丰富的通知Microsoft Graph

提问于
浏览
0

我想使用Microsoft图形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 回答

  • 1

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

    我们将改进错误消息 .

相关问题