import requests
import json

# Login as Keanu
session = requests.Session()
login_url = "https://mesh.ultramodul.xyz/api/auth/login"
resp = session.post(login_url, json={"email": "keanu@pc24.id", "password": "password"})
print("Login Status:", resp.status_code)
print("Login Resp:", resp.text)

# Fetch Quantum Token
qt_url = "https://mesh.ultramodul.xyz/api/auth/quantum_token"
resp2 = session.get(qt_url)
print("QT Status:", resp2.status_code)
try:
    data = resp2.json()
    ui = data.get('capabilities', {}).get('ui', {})
    print("UI Matrix:")
    print(json.dumps(ui, indent=2))
except Exception as e:
    print("Failed to parse QT:", e)
    print(resp2.text)
