如何通过microsoft graph api访问office 365用户outlook日历 [英] How to access office 365 users outlook calendar through microsoft graph api

查看:112
本文介绍了如何通过microsoft graph api访问office 365用户outlook日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发一个应用程序(Azure托管的网站)。有一个API-APP和一个使用api-app的网站。

I'm working on an application (website hosted in Azure). There is an API-APP and a website, that uses the api-app.

目前我写了一个outlook加载项,读取outlook日历约会并将它们传输到我的sql数据库。由于此解决方案不能非常可靠,我想使用MS Graph api进行CRUD操作。

At the moment I wrote an outlook add-in that read outlook calendar appointments and transfer these to my sql database. Because this solution does not work very reliable I want to use MS Graph api for CRUD operations.

现在我想将我的应用程序仅用于我的公司,但稍后用于其他客户。对于我的公司,我可以在我的应用程序和azure-ad之间建立信任,它可以运行,但我如何访问外国(办公室365用户)日历。

Now I want to use my application only for my company but later for other customers. For my company I can establish a trust between my application and the azure-ad and it would works, but how I can access to foreign (office 365 users) calendars.

In一种简单的方式:外国办公室365用户"A"想要使用我的应用程序。他从我的购买许可证,我将他的Office 365帐户放入我的应用程序的广告组中,并且在用户A使用他的办公室365帐户登录到我的网站
后,他可以看到他的约会。对于这个建议,客户不应该在他们的广告和我的申请之间建立信任。

In a simply way: A foreign office 365 User "A" want to use my application. He purchase a license from my, I put his Office 365 account in the ad-group of my application and after the user A log in with his office 365 account into my site, he can see his appointments. For this propose the customers should not establish a trust between their ad and my application.

我希望我的问题不是很复杂; - )

I hope my question is not very complicated ;-)

推荐答案

是的,您可以使用Microsoft Graph API来实现相同的目标。 请参阅可用的官方文档

这里
就是一样。 此外,还有一个步骤可以使用ASP.NET教程
$ b这里是$ b 以检索用户的日历信息。 希望这会有所帮助。

Yes, you can use Microsoft Graph API to achieve the same.  Please refer to the official documentation available here on the same.  Also, there is a step to step ASP.NET tutorial available here to retrieve calendar information of a user.  Hope this helps.


这篇关于如何通过microsoft graph api访问office 365用户outlook日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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