9 lines
440 B
Python
9 lines
440 B
Python
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 |