19 lines
459 B
Python
19 lines
459 B
Python
import json
|
|
import asyncio
|
|
import httpx
|
|
from sdgb import MaimaiClient
|
|
from settings import *
|
|
|
|
maimai = MaimaiClient()
|
|
|
|
async def run_workflow(maimai):
|
|
async with httpx.AsyncClient(verify=False) as client:
|
|
data = {
|
|
"userId": userId,
|
|
"segaIdAuthKey":""
|
|
}
|
|
result = await maimai.call_api(client, "GetUserPreviewApi", data, userId)
|
|
|
|
# 执行入口
|
|
if __name__ == "__main__":
|
|
asyncio.run(run_workflow(maimai)) |