Skip to content

Feature/simplify client creation - #219

Merged
Samwel K. (samwelkanda) merged 7 commits into
mainfrom
feature/simplify-client-creation
May 31, 2023
Merged

Feature/simplify client creation#219
Samwel K. (samwelkanda) merged 7 commits into
mainfrom
feature/simplify-client-creation

Conversation

@samwelkanda

@samwelkanda Samwel K. (samwelkanda) commented May 25, 2023

Copy link
Copy Markdown
Contributor

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
Samwel K. (samwelkanda) marked this pull request as ready for review May 25, 2023 15:14
@samwelkanda
Samwel K. (samwelkanda) requested a review from a team as a code owner May 25, 2023 15:14
@samwelkanda
Samwel K. (samwelkanda) merged commit 0e5ff48 into main May 31, 2023
@samwelkanda
Samwel K. (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