Call correct API endpoint when adding users to session

This commit is contained in:
Wild Sands 2024-04-08 17:22:54 +02:00
parent dfcfacb268
commit 62089174ce

View file

@ -336,7 +336,7 @@ class API(object):
return self.sessions("/Capabilities/Full", "POST", json=data) return self.sessions("/Capabilities/Full", "POST", json=data)
def session_add_user(self, session_id, user_id, option=True): def session_add_user(self, session_id, user_id, option=True):
return self.sessions("/%s/Users/%s" % (session_id, user_id), "POST" if option else "DELETE") return self.sessions("/%s/User/%s" % (session_id, user_id), "POST" if option else "DELETE")
def session_playing(self, data): def session_playing(self, data):
return self.sessions("/Playing", "POST", json=data) return self.sessions("/Playing", "POST", json=data)