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
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# microsoft-python
1
+
# microsoftgraph-python
2
2
Microsoft graph API wrapper for Microsoft Graph written in Python.
3
3
4
4
## Before start
@@ -8,13 +8,14 @@ authentication flow that you will use to get access tokens will depend on the ki
8
8
whether you want to use OpenID Connect to sign the user in to your app. One common flow used by native and mobile
9
9
apps and also by some Web apps is the OAuth 2.0 authorization code grant flow.
10
10
11
-
See https://docs.microsoft.com/en-us/graph/auth-v2-user
11
+
See [Get access on behalf of a user](https://docs.microsoft.com/en-us/graph/auth-v2-user)
12
12
13
13
## Breaking changes if you're upgrading prior 1.0.0
14
-
- Added API structure to library for e.g. `client.get_me()` => `client.users.get_me()`.
14
+
- Added structure to library to match API documentation for e.g. `client.get_me()` => `client.users.get_me()`.
15
15
- Renamed several methods to match API documentation for e.g. `client.get_me_events()` => `client.calendar.list_events()`.
16
16
- Result from calling a method is not longer a dictionary but a Response object. To access the dict response as before then call `.data` property for e.g `r = client.users.get_me()` then `r.data`.
17
17
- Previous API calls made through beta endpoints are now pointing to v1.0 by default. This can be changed to beta if needed with the parameter `api_version` in the client instantiation.
18
+
- Removed Office 365 endpoints as they were merged with the Microsoft Graph API. See [Office 365 APIs](https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/).
18
19
## New in 1.0.0
19
20
- You can access to [Requests library's Response Object](https://docs.python-requests.org/en/latest/user/advanced/#request-and-response-objects) for e.g. `r = client.users.get_me()` then `r.original` or the response handled by the library `r.data`.
20
21
- New Response properties `r.status_code` and `r.throttling`.
@@ -26,7 +27,7 @@ See https://docs.microsoft.com/en-us/graph/auth-v2-user
26
27
pip install microsoftgraph-python
27
28
```
28
29
## Usage
29
-
### Instantiation
30
+
### Client instantiation
30
31
```
31
32
from microsoftgraph.client import Client
32
33
client = Client('CLIENT_ID', 'CLIENT_SECRET', account_type='common') # by default common, thus account_type is optional parameter.
0 commit comments