Skip to content

Commit 8fb3cdf

Browse files
authored
Merge branch 'main' into de-101/python-rewrite
2 parents 04e26a7 + 07927f5 commit 8fb3cdf

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
2-
## v1.2.0 7/8/24
3-
- Generalized Avro functions and separated encoding/decoding behavior.
2+
## v1.1.6 7/12/24
3+
- Add put functionality to Oauth2 Client
4+
- Update pyproject version
45

56
## v1.1.5 6/6/24
67
- Use executemany instead of execute when appropriate in RedshiftClient.execute_transaction

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)