【发布时间】: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