![]() ![]() To get the current user's root folder of their default drive: var rootItem = await graphClient.Me.() GetAsync will return a Drive object on success and throw a Of the Microsoft Graph API's RESTful syntax.įor example, to retrieve a user's default drive: var drive = await graphClient.Me.Drive.GetAsync() The requests in the SDK follow the format Once you have completed authentication and have a GraphServiceClient, you canīegin to make calls to the service. IAuthenticationProvider which can authenticate requests to Microsoft Graph.įor more information on initializing a client instance, see the library overview 4. New instance of this class, you need to provide an instance of Sending them to Microsoft Graph API, and processing the responses. Create a Microsoft Graph client object with an authentication providerĪn instance of the GraphServiceClient class handles building requests, 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 using the Microsoft Application Registration Portal. Type Install-Package Microsoft.Graph into the Package Manager Console.Search for Microsoft.Graph in the NuGet Library, or. ![]() 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 |