通过Microsoft Graph API进行消息订阅,无需用户交互 [英] Message subscription through Microsoft Graph API without User Interaction
问题描述
我正在尝试通过Microsoft API Graph将Office 365与我的应用程序集成,并且我正在Github中跟踪一个非常接近我的要求的项目,该项目使用azure WebJob
Hi I'm Trying to Integrate Office 365 with my Application through Microsoft API Graph , and i'm following a Project in Github which was very close to my requirement, which uses azure WebJob Azure WebJob Project Link, but this project has not been updated in Last 2 years , Currently i'm trying to recreating this app with azure Developer account (Free) , the steps given there are mismatches with Free Account , my Goal is to subscribe to a mail event and notify to my application with the details,
其他信息:
我的应用程序:C#MVC .Net 4.5框架
My Application : C# MVC .Net 4.5 Framework
状态:生产中
注意:选择此项目的主要原因所有示例都是在.NetCore中自从它投入生产以来,我现在不能切换我的应用程序框架,如果有更好的解决方案,在这种情况下,天蓝色的webjob似乎可以满足我的情况 比这还建议我,
Note: The Main reason for choosing this Project all the examples are either in .NetCore i cannot switch my application framework now since its in production , where azure webjob seems to work for my situation , if there is a better solution than this please suggest me ,
应用设置:
在执行应用程序时遇到的问题
Issue faced while executing the application
chandru.v
chandru.v
推荐答案
您是否尝试过调试应用程序,当您在Microsoft图形上注册网络挂钩时,您需要发回从图形API发送的验证令牌.
Have you tried debugging your application,When you register a web-hook on Microsoft graph ,you need to send back the validation token send from graph API .
该Webhook的有效期设置为3天,因此您需要每两半天更新一次Webhook订阅.要在图形资源上注册Webhook,可以使用函数或Logic Apps端点.
The webhook has expiry set for 3 days ,so you need to renew the webhook subscription after each two and half days .To register the webhook on graph resource you can either use functions or Logic Apps endpoint
这篇关于通过Microsoft Graph API进行消息订阅,无需用户交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!