Skip to content

Commit

Permalink
get user
Browse files Browse the repository at this point in the history
  • Loading branch information
hhuuggoo committed Oct 24, 2024
1 parent 0c01b97 commit 5eb1771
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions saturn_client/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,10 @@ def get_user_usage(self, org_id: str, user_id: str, start: Union[dt.datetime, st
route = make_path(path, params)
return execute_request(self.session, self.settings.BASE_URL, route, method="GET")['usage']

def get_user(self, user_id: str) -> Dict:
path = f"/api/users/{user_id}"
return execute_requset(self.session, self.settings.BASE_URL, path, method="GET")

def create_user(self, username: str, email: str, send_reset_email: bool = True) -> Dict:
body = {
"username": username,
Expand Down

0 comments on commit 5eb1771

Please sign in to comment.