【问题标题】:Outlook webhook notification subscriptionOutlook webhook 通知订阅
【发布时间】:2016-03-25 09:53:14
【问题描述】:

我已经在我的代码中实现了 Outlook 通知 rest api,它工作正常,但今天它突然失败并给我 400 错误。

请求 Outlook 以创建订阅通知 输出::

{"error":{"code":"ErrorInvalidParameter","message":"The parameter 'Resource' is invalid."}}

我的帖子数据如下:: URL => outlook.office.com/api/v2.0/me/subscriptions

$subscriptionParameters = json_encode(array( "@odata.type" => "#Microsoft.OutlookServices.PushSubscription", "资源" => "https://outlook.office.com/api/v2.0/me/events",
"NotificationURL" => "https://mydomain/acceptnotification.php", "ChangeType" => "创建、更新、删除", “客户端状态”=>“c75831bd-fad3-4191-9a66-280a48528679” ));

使用 cUrl 使用 access_token 和电子邮件地址将上述数据传递到 Outlook

请给我建议。

【问题讨论】:

    标签: api outlook office365 outlook-restapi


    【解决方案1】:

    感谢您报告此问题。微软工程团队目前正在对其进行调查。同时,适用于多个订阅案例的解决方法是对资源属性使用相对 URL

    例如

    “资源”:“我/事件”,

    谢谢。

    【讨论】:

    • 您是 Microsoft 工程团队的代表吗?
    猜你喜欢
    • 2019-05-28
    • 1970-01-01
    • 2016-04-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-16
    相关资源
    最近更新 更多