![]() ![]() ![]() The requests to the service follows our REST API syntax.įor example, to retrieve a user's default drive: HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Get, "me/drive") Once you have an authenticated HttpClient, you can begin to make calls to the service. HttpClient httpClient = GraphClientFactory.Create( version: "beta") įor more information on initializing a client instance, see the library overview 4. You can create an instance of HttpClient that is pre-configured for making requests to Microsoft Graph APIs using GraphClientFactory. Create a HttpClient object with an authentication provider The recommended library for authenticating against Microsoft Identity (Azure AD) is MSAL.įor an example of authenticating a UWP app using the V2 Authentication Endpoint, see the Microsoft Graph UWP Connect Library. You can read more about available Credential classes here and examples on how to quickly setup TokenCredential instances can be found here. NET Client Library supports the use of TokenCredential classes in the Azure.Identity library. Authenticate for the Microsoft Graph service Register your application to use Microsoft Graph API by following the steps at Register your application with the Microsoft identity platform. Type Install-Package into the Package Manager Console.NET Core Client Library contains core classes and interfaces used by Microsoft.Graph Client Library to send native HTTP requests to Microsoft Graph API. ![]() Integrate the Microsoft Graph API into your. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |