diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f1f08d..471f353 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Changelog +## v1.1.6 7/12/24 +- Add put functionality to Oauth2 Client + ## v1.1.5 6/6/24 - Use executemany instead of execute when appropriate in RedshiftClient.execute_transaction diff --git a/src/nypl_py_utils/classes/oauth2_api_client.py b/src/nypl_py_utils/classes/oauth2_api_client.py index 5a47efb..524ec3c 100644 --- a/src/nypl_py_utils/classes/oauth2_api_client.py +++ b/src/nypl_py_utils/classes/oauth2_api_client.py @@ -76,6 +76,13 @@ def post(self, request_path, json, **kwargs): kwargs['json'] = json return self._do_http_method('POST', request_path, **kwargs) + def put(self, request_path, json, **kwargs): + """ + Issue an HTTP PUT on the given request_path with given JSON body + """ + kwargs['json'] = json + return self._do_http_method('PUT', request_path, **kwargs) + def patch(self, request_path, json, **kwargs): """ Issue an HTTP PATCH on the given request_path with given JSON body