import requests
import json

session = requests.Session()
login_url = "https://mesh.ultramodul.xyz/api/auth/login"
resp = session.post(login_url, json={"email": "keanu@pc24.id", "password": "JumpaS3cur3!@#"})
print("Login:", resp.status_code)
# If login succeeds, check quantum_token
if resp.status_code == 200:
    qt_url = "https://mesh.ultramodul.xyz/api/auth/quantum_token"
    qt_resp = session.get(qt_url)
    print("QT:", qt_resp.status_code)
    try:
        data = qt_resp.json()
        print(json.dumps(data.get('capabilities', {}).get('ui', {}), indent=2))
    except Exception as e:
        print("Parse error", e)
else:
    print(resp.text)
