Skip to content

Commit f9c5b43

Browse files
committed
Merge branch 'de-101/python-rewrite' of https://github.com/NYPL/python-utils into de-101/python-rewrite
2 parents a9810e0 + 8fb3cdf commit f9c5b43

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
## v1.2.0 7/17/24
33
- Generalized Avro functions and separated encoding/decoding behavior.
44

5+
## v1.1.6 7/12/24
6+
- Add put functionality to Oauth2 Client
7+
- Update pyproject version
8+
59
## v1.1.5 6/6/24
610
- Use executemany instead of execute when appropriate in RedshiftClient.execute_transaction
711

src/nypl_py_utils/classes/oauth2_api_client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ def post(self, request_path, json, **kwargs):
7676
kwargs['json'] = json
7777
return self._do_http_method('POST', request_path, **kwargs)
7878

79+
def put(self, request_path, json, **kwargs):
80+
"""
81+
Issue an HTTP PUT on the given request_path with given JSON body
82+
"""
83+
kwargs['json'] = json
84+
return self._do_http_method('PUT', request_path, **kwargs)
85+
7986
def patch(self, request_path, json, **kwargs):
8087
"""
8188
Issue an HTTP PATCH on the given request_path with given JSON body

0 commit comments

Comments
 (0)