Last active
February 9, 2023 13:21
-
-
Save maisarissi/b3e811d959d091ed88b7f684ab9e1dd9 to your computer and use it in GitHub Desktop.
msgraph-dotnet-v5-rc-v1-beta-clients
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
InteractiveBrowserCredential interactiveBrowserCredential = new ("ClientID"); | |
//create client for calling v1 endpoint and get my info | |
Microsoft.Graph.GraphServiceClient graphServiceClient = new (tokenCredential, scopes); | |
var userFromV1 = await graphServiceClient.Me.GetAsync(); | |
//create client for calling beta endpoint and get my info | |
Microsoft.Graph.Beta.GraphServiceClient betaGraphServiceClient = new(tokenCredential, scopes); | |
var userFromBeta = await betaGraphServiceClient.Me.GetAsync(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment