如何在创建订阅中创建 notificationUrl

时间:2021-04-28 16:05:50

标签: microsoft-graph-api

{ "changeType": "创建", "notificationUrl": "https://webhook.azurewebsites.net/api/send/myNotifyClient", "resource": "me/mailFolders('Inbox')/messages", "expirationDateTime":"2016-11-20T18:23:45.9356913Z", "clientState": "secretClientValue", "latestSupportedTlsVersion": "v1_2" }

1 个答案:

答案 0 :(得分:0)

notificationUrl 是您自己的 API 端点,Graph 会将通知发送到该端点。它可以是具有已知 CA 颁发的证书的任何公共 Web HTTPS 接口。我建议您检查 Use Change Notifications and Track Changes with Microsoft Graph Guide 其中 Ngrok 用于公开在您的本地计算机上运行的端点以接受 MS Graph 更改通知