You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-53Lines changed: 10 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,52 +18,22 @@ pip install msgraph-beta-sdk
18
18
19
19
Register your application by following the steps at [Register your app with the Microsoft Identity Platform](https://docs.microsoft.com/graph/auth-register-app-v2).
20
20
21
-
### 2.2 Create an AuthenticationProvider object
21
+
### 2.3 Get a GraphServiceClient object
22
+
23
+
You must get a **GraphServiceClient** object to make requests against the service.
22
24
23
-
An instance of the **GraphServiceClient** class handles building client. To create a new instance of this class, you need to provide an instance of **AuthenticationProvider**, which can authenticate requests to Microsoft Graph.
25
+
An instance of the **GraphServiceClient** class handles building client. To create a new instance of this class, you need to provide an instance of **Credential**, which can authenticate requests to Microsoft Graph.
24
26
25
27
> **Note**: For authentication we support both `sync` and `async` credential classes from `azure.identity`. Please see the azure identity [docs](https://learn.microsoft.com/en-us/python/api/azure-identity/azure.identity?view=azure-python) for more information.
26
28
27
29
```py
28
30
# Example using async credentials.
29
31
from azure.identity.aio import EnvironmentCredential
0 commit comments