我正在关注文档:https://docs.microsoft.com/en-us/graph/webhooks
我想创建一个订阅,以便在每次创建或更新共享邮箱中的事件时调用 Webhook。
我认为下面会是这样。谁能给我一个示例,说明如何将 RESOURCE 参数配置为我的共享邮箱和事件?
POST https://graph.microsoft.com/v1.0/subscriptions
Content-Type: application/json
{
"changeType": "created,updated",
"notificationUrl": "https://mywebhook.com",
"resource": "/me/mailfolders('inbox')/messages",
"expirationDateTime": "2050-03-20T11:00:00.0000000Z",
"clientState": "SecretClientState"
}
答案 0 :(得分:0)
尝试将资源参数设置为/users/yourSharedMailBox@yourTenant.com/events