在我的项目中,我创建了 Rest API 项目来创建订阅并收听来自 Microsoft Graph API 的通知。我想订阅以下内容:
- 当我创建会议室活动时,我想在任何与会者接受/拒绝该会议室活动时收到通知。
- 如果整个会议活动被取消或移动到另一个时间段或添加了任何新的与会者。
我期待以上所有内容都被以下代码覆盖,但事实并非如此:
var subscription = new Subscription
{
ChangeType = "updated,deleted",
NotificationUrl = $"{_notificationHost}/listen",
Resource = "me/events",
ClientState = Guid.NewGuid().ToString(),
IncludeResourceData = false,
// Subscription only lasts for one hour
ExpirationDateTime = DateTimeOffset.UtcNow.AddHours(1)
};
It does not send notification when accept or reject done by attendee with 'Do not send a response'. How I can get notification for this?