ms graph go beta sdk
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
import ( | |
azidentity "github.com/Azure/azure-sdk-for-go/sdk/azidentity" | |
a "github.com/microsoft/kiota/authentication/go/azure" | |
"context" | |
// this line imports the v1.0 SDK | |
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" | |
// this line imports the beta SDK | |
msgraphbetasdk "github.com/microsoftgraph/msgraph-beta-sdk-go" | |
) | |
// … creation of the credentials, authentication provider and request adapter omitted for brievety | |
// creates a client for the v1.0 API | |
client := msgraphsdk.NewGraphServiceClient(adapter) | |
// creates a client for the beta API | |
betaclient := msgraphbetasdk.NewGraphServiceClient(adapter) | |
// use the clients as needed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment