mirror of
https://github.com/uroni/urbackup-server-python-web-api-wrapper.git
synced 2025-10-26 11:38:16 +00:00
Merge pull request #11 from cargreg/master
added function get_users to obtain users list
This commit is contained in:
commit
ebc5ead6ba
@ -346,6 +346,17 @@ class urbackup_server:
|
||||
|
||||
return status["status"]
|
||||
|
||||
def get_users(self):
|
||||
if not self.login():
|
||||
return None
|
||||
|
||||
users = self._get_json("settings",{"sa":"listusers"})
|
||||
|
||||
if not "users" in users:
|
||||
return None
|
||||
|
||||
return users["users"]
|
||||
|
||||
def get_livelog(self, clientid = 0):
|
||||
if not self.login():
|
||||
return None
|
||||
|
||||
Loading…
Reference in New Issue
Block a user