Last active
May 26, 2022 16:32
-
-
Save sebastienlevert/b360ecf0070f76754cc5008399e6f53d to your computer and use it in GitHub Desktop.
Samples for the Graph SDK Build 2022 Announcement
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
// Sample for .NET | |
var graphClient = new GraphServiceClient(credential, scopes); | |
var result = await graphClient.Me.Drive.GetAsync(); |
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
// Sample for Go | |
client := msgraphsdk.NewGraphServiceClient(adapter) | |
result, err := client.Me().Drive().Get() |
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
// Sample for Javascript | |
const graphServiceClient = GraphServiceClient.init({ authProvider }); | |
const result = await graphServiceClient.me.drive.get(); |
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
# Sample for CLI | |
mgc login --scopes User.Read Files.Read | |
mgc me drive get |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment