我正在嘗試編寫服務以在發生日曆事件時採取操作。即在15分鐘內提醒預約。多個用戶需要能夠註冊該服務。我認爲訂閱是我需要的,儘管用什麼「ChageType」來獲得警報,我還沒有得到。現在我得到「MSA請求不支持Exchange Online資源。」當我嘗試使用此代碼。我正在針對outlook.com帳戶工作。Microsoft.Graph訂閱 - MSA請求不支持Exchange Online資源
GraphServiceClient graphClient = SDKHelper.GetAuthenticatedClient();
var subscription = new Microsoft.Graph.Subscription();
subscription.ChangeType = "updated";
subscription.ExpirationDateTime = System.DateTime.UtcNow.AddDays(1);
subscription.ClientState = System.Guid.NewGuid().ToString();
subscription.NotificationUrl = "https://mywebhook.azurewebsites.net/api/send/myNotifyClient"; // must be valid and able to verify?
subscription.Resource = "me/events";
var newsub = await graphClient.Subscriptions
.Request().AddAsync(subscription);
對Outlook.com的訂閱由金塊包支持:包裝Outlook365 API的Microsoft.Office365.OutlookServices-V2.0。實際上這件事情已經成型 - 認證模式就像是用溜冰鞋拉牙。 –