【发布时间】:2022-08-04 21:19:48
【问题描述】:
我正在尝试为 MS Teams 聊天创建 MS Graph 订阅。 我一直在阅读此文档:https://docs.microsoft.com/en-us/graph/teams-changenotifications-teammembership
示例 POST 消息如下所示:
POST https://graph.microsoft.com/v1.0/subscriptions
Content-Type: application/json
{
\"changeType\": \"created,deleted,updated\",
\"notificationUrl\": \"https://webhook.azurewebsites.net/api/resourceNotifications\",
\"resource\": \"/teams/{team-id}/members\",
\"includeResourceData\": true,
\"encryptionCertificate\": \"{base64encodedCertificate}\",
\"encryptionCertificateId\": \"{customId}\",
\"expirationDateTime\": \"2019-09-19T11:00:00.0000000Z\",
\"clientState\": \"{secretClientState}\"
}
我不清楚如何创建加密证书或 certificateId 值
我目前正在谷歌搜索/浏览 MS 图表文档,但如果有人能指出我正确的文章,我将不胜感激。
标签: microsoft-graph-api microsoft-graph-teams