microsoft-graph-api - Outlook.MAPIFolder 和 Office 365 API 之间的 CalendarID 不同
问题描述
目前,我在 Outlook 应用程序中使用 Microsoft.Office.Interop.Outlook.MAPIFolder,并https://outlook.office365.com/api/v2.0/me/calendars
在 Office 365 api 中使用此 API 来获取 CalendarID。
但是结果中有不同的 CalendarID。为什么会有这种差异?
解决方案
这些是不同的 API,例如,一个是 MAPI,一个是 REST,因此它们具有不同的 Id 格式。您可以使用 Graph API(或 EWS)在格式https://docs.microsoft.com/en-us/graph/api/user-translateexchangeids?view=graph-rest-1.0&tabs=http之间转换 Id 。您也可以使用 PR_EntryId 扩展属性https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/extended-properties-rest-operations应该与您从 MAPI 获得的任何 CalendarId 匹配的 REST API。
推荐阅读
- django - redis-server.exe:无法在heroku中执行二进制文件
- spring-security - 在 Spring Cloud Gateway 的 oauth2 客户端流中禁用重定向到 oauth2/authorization/{registrationId}
- asp.net-core - Asp.net:不支持“应用程序/grpc-web”
- javascript - 如何获得“您还剩 2 次尝试!” 提醒以反映登录尝试减少的次数?
- flutter - 需要一个“int”类型的值,但在 Flutter DataTable 中得到一个“String”类型的值
- reactjs - 如何在 React 中创建 upvote/downvote 组件?
- java - 带有模板 html 的 Spring Boot java 邮件
- typescript - 如何使用变量对象运行我的 GraphQL 查询以进行突变
- geometry - 在 SceneKit 中,检测敌人周围的几何体,以便它在环境中导航
- spring - Spring boot 2.4.0 不推荐使用 HandlerInterceptorAdapter 类型