Har*_*ndh 8 microsoft-graph microsoft-graph-calendar
我们使用Microsoft Graph API在Outlook中创建日历
以下是HTTP请求
POST https://graph.microsoft.com/v1.0/users/me/calendars
Content-type: application/json
{
"name": "My Calendar"
}
Run Code Online (Sandbox Code Playgroud)
最近两年来一直在工作。突然它抛出一个错误
{
"error": {
"code": "TargetIdShouldNotBeMeOrWhitespace",
"message": "Id is malformed.",
"innerError": {
"request-id": "78bce863-d6fb-4ea9-b0f8-e5097010cef6",
"date": "2019-03-23T11:54:34"
}
}
}
Run Code Online (Sandbox Code Playgroud)
当我们搜索文档时(https://docs.microsoft.com/zh-cn/graph/api/user-post-calendars?view=graph-rest-1.0)。我们发现API网址已更改
何时推出像这样的重要更新而导致流程中断?
是否有任何官方频道/群组通知这些更改。
邮件API的Microsoft Graph API的类似问题-SendMail http 400-文档中的API网址不起作用
正确的 URI 是/me
, 不是/users/me
。在幕后,/me
只是 的别名/users/{id}
。要求/users/me
就相当于要求/users/users/me
。
听起来你正在利用一种无意识的行为。当这种行为得到纠正后,它就停止工作了。
归档时间: |
|
查看次数: |
234 次 |
最近记录: |