Skip to content

Feature/simplify client creation#219

Merged
samwelkanda merged 7 commits intomainfrom
feature/simplify-client-creation
May 31, 2023
Merged

Feature/simplify client creation#219
samwelkanda merged 7 commits intomainfrom
feature/simplify-client-creation

Conversation

@samwelkanda
Copy link
Contributor

@samwelkanda samwelkanda commented May 25, 2023

Simplifies the initialization of a graph client from

auth_provider = AzureIdentityAuthenticationProvider(credential, scopes=scopes)
# Initialize a request adapter. Handles the HTTP concerns
request_adapter = GraphRequestAdapter(auth_provider)
# Get a service client
client = GraphServiceClient(request_adapter)

to

client = GraphServiceClient(credentials=credential, scopes=scopes)

closes #180

@samwelkanda samwelkanda marked this pull request as ready for review May 25, 2023 15:14
@samwelkanda samwelkanda requested a review from a team as a code owner May 25, 2023 15:14
@samwelkanda samwelkanda merged commit 0e5ff48 into main May 31, 2023
@samwelkanda samwelkanda deleted the feature/simplify-client-creation branch May 31, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

We should align with other languages and make initialization easier

2 participants