Microsoft graph api Microsoft Graph webhooks-订阅用户日历

Microsoft graph api Microsoft Graph webhooks-订阅用户日历,microsoft-graph-api,Microsoft Graph Api,我的Microsoft Graphwebhook订阅/me/events有问题。我想做的是订阅所有用户日历 首先,我使用我的个人Microsoft帐户在中创建了新应用程序。 然后在我的应用程序中,我使用访问令牌订阅/me/events通知: POST https://graph.microsoft.com/beta/subscriptions { "changeType": "created,updated", "notificationUrl": "https://xxxxx

我的
Microsoft Graph
webhook订阅
/me/events
有问题。我想做的是订阅所有用户日历

首先,我使用我的个人Microsoft帐户在中创建了新应用程序。 然后在我的应用程序中,我使用访问令牌订阅
/me/events
通知:

POST https://graph.microsoft.com/beta/subscriptions

{
    "changeType": "created,updated",
    "notificationUrl": "https://xxxxx.ngrok.io/notification-url",
    "resource": "/me/events",
    "expirationDateTime": "2018-11-14T09:40:10.933Z",
    "clientState": "xxxx-xxxx-xxxx-xxxx"
}
My
notificationUrl
接收验证请求,我的应用程序用
200 OK
和验证令牌响应该请求。之后,POST请求返回我的订阅:

{
  "@odata.context" : "https://graph.microsoft.com/beta/$metadata#subscriptions/$entity",
  "id" : "2773aa4c-e983-4d15-9236-xxxxxxxx",
  "resource" : "/me/events",
  "applicationId" : "d551ec34-8d44-4cc6-9b88-xxxxxxxx",
  "changeType" : "created,updated",
  "clientState" : "xxxx-xxxx-xxxx-xxxx",
  "notificationUrl" : "https://xxxxx.ngrok.io/notification-url",
  "expirationDateTime" : "2018-11-14T09:40:10.933Z",
  "creatorId" : "00000000000"
}
此订阅工作正常,但仅适用于Outlook中的一个默认日历。如果我在我的帐户中存在的任何其他日历中创建、更新事件,我不会收到任何通知


这里可能有什么问题,我是否使用了错误的资源名称(
/me/events
),或者这是
Microsoft Graph
中个人帐户的一些限制?

当您使用
/me/events
时,您将转到用户的默认日历(per)。在您的情况下,您需要枚举用户的日历(
GET/me/calendars
),然后使用资源
/me/calendars/{calendar id}/events
订阅每个日历的事件集合