Skip to content

Commit

Permalink
Add put functionality to Oauth2 Client (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylevillegas93 authored Jul 12, 2024
1 parent 86bb686 commit 4425132
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 7 additions & 0 deletions src/nypl_py_utils/classes/oauth2_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4425132

Please sign in to comment.