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
+25-24Lines changed: 25 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,15 @@ apps and also by some Web apps is the OAuth 2.0 authorization code grant flow.
11
11
See 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
-
-Adds API structure to library for e.g. `client.get_me()` => `client.users.get_me()`.
15
-
-Renames several methods to match API documentation for e.g. `client.get_me_events()` => `client.calendar.list_events()`.
16
-
- Result from calling methods are not longer a dict but a Response obj. To access the dict response as before then call `.data` property for e.g `r = client.users.get_me()` then `r.data`.
17
-
14
+
-Added API structure to library for e.g. `client.get_me()` => `client.users.get_me()`.
15
+
-Renamed several methods to match API documentation for e.g. `client.get_me_events()` => `client.calendar.list_events()`.
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
+
- 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
18
## New in 1.0.0
19
-
- You can access to [Requests library's Response obj](https://docs.python-requests.org/en/latest/) for e.g. `r = client.users.get_me()` then `r.original` or the response handled by the library `r.data`.
19
+
- 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
20
- New Response properties `r.status_code` and `r.throttling`.
21
-
- Better docstrings and type hinting.
21
+
- You can pass [Requests library's Event Hooks](https://docs.python-requests.org/en/latest/user/advanced/#event-hooks) with the parameter `requests_hooks` in the client instantiation. If you are using Django and want to log in database every request made through this library, see [django-requests-logger](https://github.com/GearPlug/django-requests-logger).
0 commit comments