Initial commit of AthonetTools
This commit is contained in:
9
services/combocore/pls.py
Normal file
9
services/combocore/pls.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from .client import ComboCoreClient
|
||||
|
||||
# Minimal PLS surface to start
|
||||
def login(host: str, user: str, pwd: str, verify_ssl=False, timeout=10.0) -> str:
|
||||
return ComboCoreClient(host, user, pwd, verify_ssl, timeout).login()
|
||||
|
||||
def get_me(host: str, user: str, pwd: str, verify_ssl=False, timeout=10.0) -> dict:
|
||||
cli = ComboCoreClient(host, user, pwd, verify_ssl, timeout)
|
||||
return cli.get("/core/pls/api/1/auth/me") # adjust if different
|
||||
Reference in New Issue
Block a user