[英]Microsoft Graph API: Subscribing to MailboxSettings
Is it possible to subscribe to changes of MailboxSettings - specifically AutomaticRepliesSetting? 是否可以订阅MailboxSettings的更改-特别是AutomaticRepliesSetting?
Trying to POST this to /subscriptions
on the beta API. 尝试将其发布到beta API的/subscriptions
上。
{
"changeType":"updated",
"notificationUrl":"https://example.com/microsoft/notify",
"resource":"users/karel@example.com/mailboxSettings",
"expirationDateTime":"2018-05-11T08:05:26.6920740Z",
"clientState":"QUUvRXJ5beHI9VEvn6hq"
}
Getting back: 取回:
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: Forbidden; Reason: Forbidden]"
The application has admin consent for Calendars.ReadWrite
, User.Read.All
and MailboxSettings.ReadWrite
该应用程序具有Calendars.ReadWrite
, User.Read.All
和MailboxSettings.ReadWrite
管理员同意。
I can successfully subscribe to calendar changes, so nothing is wrong with the implementation. 我可以成功订阅日历更改,因此实现没有问题。
Subscribing to the root /users/karel@example.com
endpoint gives: 订阅根目录/users/karel@example.com
得到:
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: InternalServerError; Reason: Internal Server Error]",
"innerError": { "request-id": "3caffc72-9507-4bb7-9eab-56e8ecaaab83", "date": "2018-05-08T09:22:16" }
}
}
This isn't supported. 不支持此功能。 From the documentation : 从文档中 :
Using the Microsoft Graph REST API, an app can subscribe to changes on the following resources: 使用Microsoft Graph REST API,应用程序可以订阅以下资源的更改:
- Messages 消息
- Events 活动
- Contacts 往来
- Users 用户
- Groups 组
- Group conversations 小组对话
- Content shared on OneDrive including drives associated with SharePoint sites 在OneDrive上共享的内容,包括与SharePoint网站关联的驱动器
- User's personal OneDrive folders 用户的个人OneDrive文件夹
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.