Files
eaquira/sdgb/GetUserPreviewApi.py
91c0e59d-6161-45ab-8aa4-2371574db28f 6d3710e357 UserPreview add cookie
2026-01-22 23:02:16 +08:00

24 lines
584 B
Python
Executable File

import asyncio
from chime import *
from sdgb import MaimaiClient
from settings import *
maimai = MaimaiClient()
userId = qr_api(qrCode)['userID']
token = qr_api(qrCode)['token']
async def run_workflow(maimai):
async with httpx.AsyncClient(verify=False) as client:
data = {
"userId": userId,
"segaIdAuthKey":"",
"token": token,
"clientId": clientId
}
result = await maimai.call_api(client, "GetUserPreviewApi", data, userId)
# 执行入口
if __name__ == "__main__":
asyncio.run(run_workflow(maimai))