且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在不使用Web服务器的情况下编写简单的Microsoft图形客户端

更新时间:2023-09-10 19:01:52

Graph API不仅限于Web应用程序,也可以在本机/桌面应用程序中使用.从本质上讲,您必须首先注册您的应用程序以获取您的应用程序ID,然后使用您想要实施Auth Code Grant流的任何REST API来获取访问权限.当您第一次发出请求时,系统将提示用户使用其Office 365帐户登录以授予对您的应用程序的访问权限,然后您便离开了.

The Graph API is not restricted to web apps and can be used in native/desktop apps as well. Essentially you have to start by registering your app to get your app ID, then use whatever REST APIs you want to implement the Auth Code Grant flow to get access. When you first issue a request the user will be prompted to sign in with their Office 365 account to grant access to your app, and away you go.

https://graph.microsoft.io/en-us /docs/get-started/rest