Skip to content

Commit

Permalink
Merge pull request #22 from ChrisTracy/master
Browse files Browse the repository at this point in the history
Adding new and delete user function to api.py
  • Loading branch information
iwalton3 authored Aug 28, 2023
2 parents 60018e4 + 59554df commit 5f41cf2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jellyfin_apiclient_python/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,15 @@ def get_user_settings(self, client="emby"):
"client": client
})

def new_user(self, name, pw):
return self._post("Users/New", {
"name": name,
"Password": pw
})

def delete_user(self, userID):
return self._delete(f"Users/{userID}")

def get_views(self):
return self.users("/Views")

Expand Down

0 comments on commit 5f41cf2

Please sign in to comment.