GraphAPI calendarGroup 返回不支持的细分类型

Unsupported segment type returned on GraphAPI calendarGroup

现有的工作代码现在突然开始失败。它调用 calendarGroup 以获取主日历组。 “https://graph.microsoft.com/v1.0/me/calendarGroup

现在已开始返回错误:

{
  "error": {
    "code": "BadRequest",
    "message": "Unsupported segment type.",
    "innerError": {
        "request-id": "288458d6-6a4a-4879-9bd9-512afc2ed2dd",
        "date": "2016-02-18T13:54:15"
    }
  }
}

这也可以通过使用他们的“https://graph.microsoft.com/v1.0/me/calendarGroup”测试站点进行上述调用来轻松重现。

graph.microsoft.io 文档指出: 获取日历组

用户的默认日历组。 获取 /me/calendarGroup

Microsoft Care 的任何人都可以回复吗?

导航 属性 的名称是 calendarGroups 而不是 calendarGroup(请参阅 https://graph.microsoft.com/v1.0/$metadata or documentation at http://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/user_list_calendargroups). Please try the request as https://graph.microsoft.com/v1.0/me/calendarGroups 处的元数据。

Microsoft 的官方回应似乎是从他们的生产版本 API 中删除记录在案的功能。请参阅链接 github issue 以了解删除该功能的文档。