(初学者)如何在 Outlook VSTO 插件中调用 Outlook RESTful API [英] (Beginner) How to call Outlook RESTful APIs in Outlook VSTO Add-In

查看:155
本文介绍了(初学者)如何在 Outlook VSTO 插件中调用 Outlook RESTful API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望开发一个 Outlook 插件,我在其中收到会议室请求,并根据与参与者数量和其他房间大小相关的条件推荐另一个房间.我正在尝试使用 C# 中的 VSTO 加载项来执行此操作.

I'm looking to develop an Outlook Add-In, in which I receive a meeting room request and propose another room based upon conditions relating number of participants and size of the other rooms. I'm attempting to do this using a VSTO Add-In in C#.

我的问题在于确定房间列表以及哪个房间较小的算法.通过研究,我可以看到 Outlook 包含了许多 RESTful API(https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations).但是,我在如何调用 API 以及如何获取它们的数据方面遇到了障碍.

My problem comes in the algorithm to determine the list of rooms and which room is smaller. From research, I can see that Outlook incorporates a number of RESTful APIs (https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations). However, I'm running into roadblocks in terms of how to call the APIs and how to get their data.

这在 VSTO 插件中是否可行?如果是这样,我如何使用 REST API 在 Outlook 中获取和存储会议室列表?我知道还有其他类型的加载项,但我不熟悉 Javascript,因此我想继续使用 C#.

Is this possible in a VSTO add-in? If so, how could I get and store a list of the meeting rooms in Outlook using the REST APIs? I know there are other types of add-ins but I'm unfamiliar with Javascript and thus I'd like to stay with C#.

推荐答案

我们建议使用 Web 加载项框架,而不是 COM,用于编写 Outlook 加载项.Web 插件框架使开发人员能够:

We recommend using the web add-in framework, instead of COM, for writing an Outlook add-in. The web add-in framework enables developers to:

  1. 编写一次即可在受支持的 Outlook 中运行加载项使加载项能够覆盖数百万个 Outlook 桌面的客户端,Outlook for Web、Outlook for Mac 和 Outlook Mobile 用户.
  2. 通过 Office 商店简化部署,使用户只需单击一下即可获取您的加载项.
  3. 通过基于 REST 的丰富 API 集访问用户邮箱数据.

除了 Web 插件框架的优势之外,Microsoft 不会投资于 COM 平台上的新功能.我们了解 COM 插件可能支持与 Web 插件框架不同的场景,因此我们会不断投资于 Web 插件框架.

In addition to the benefits of the web add-in framework, Microsoft is not investing in new functionality on the COM platform. We understand COM add-ins may support different scenarios than the web add-in framework and thus are continually investing in the web add-in framework.

如果您有任何反馈或希望在 Web 插件框架中看到的新功能,请告诉我们.

If you have any feedback or new functionality you would like to see available in the web add-in framework please let us know.

我们跟踪 用户的 Outlook 插件功能请求- 语音页面.请在此处添加您的请求.

We track Outlook add-in feature requests on our user-voice page. Please add your request there.

[Outlook 插件工程团队]

[Outlook Add-ins Engineering Team]

这篇关于(初学者)如何在 Outlook VSTO 插件中调用 Outlook RESTful API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆