Skip to content

Commit 15318d5

Browse files
committed
Fix typos
1 parent cf45368 commit 15318d5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ credential = ClientSecretCredential(
3636
client_secret='CLIENT_SECRET',
3737
)
3838
scopes = ['https://graph.microsoft.com/.default']
39-
client = GraphServiceClient(credentials=credentials, scopes=scopes)
39+
client = GraphServiceClient(credentials=credential, scopes=scopes)
4040
```
4141

4242
The above example uses default scopes for [app-only access](https://learn.microsoft.com/en-us/graph/permissions-overview?tabs=http#application-permissions). If using [delegated access](https://learn.microsoft.com/en-us/graph/permissions-overview#delegated-permissions) you can provide custom scopes:
@@ -51,7 +51,7 @@ credential=DeviceCodeCredential(
5151
tenant_id='TENANT_ID',
5252
)
5353
scopes = ['User.Read', 'Mail.Read']
54-
client = GraphServiceClient(credentials=credentials, scopes=scopes)
54+
client = GraphServiceClient(credentials=credential, scopes=scopes)
5555
```
5656

5757
## 3. Make requests against the service
@@ -73,7 +73,7 @@ credential = ClientSecretCredential(
7373
'client_secret'
7474
)
7575
scopes = ['https://graph.microsoft.com/.default']
76-
client = GraphServiceClient(credentials=credentials, scopes=scopes)
76+
client = GraphServiceClient(credentials=credential, scopes=scopes)
7777

7878
async def get_user():
7979
user = await client.users.by_user_id('userPrincipalName').get()
@@ -92,7 +92,7 @@ from msgraph import GraphServiceClient
9292

9393
credential = InteractiveBrowserCredential()
9494
scopes=['User.Read']
95-
client = GraphServiceClient(credentials=credentials, scopes=scopes,)
95+
client = GraphServiceClient(credentials=credential, scopes=scopes,)
9696

9797
async def me():
9898
me = await client.me.get()

‎msgraph/graph_service_client.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def __init__(
2323
tokenCredential to use for authentication.
2424
scopes (Optional[List[str]]): The scopes to use for authentication.
2525
Defaults to ['https://graph.microsoft.com/.default'].
26-
request_adapter (Optional[GraphRequestAdapter], optional): The
27-
request adapter to use for requests. Defaults to None.
26+
request_adapter (Optional[GraphRequestAdapter], optional): The request
27+
adapter to use for requests. Defaults to None.
2828
"""
2929

3030
if not request_adapter:

0 commit comments

Comments
 (0)