UserPreview add cookie
This commit is contained in:
11
sdgb/GetUserPreviewApi.py
Normal file → Executable file
11
sdgb/GetUserPreviewApi.py
Normal file → Executable file
@@ -1,16 +1,21 @@
|
||||
import json
|
||||
import asyncio
|
||||
import httpx
|
||||
|
||||
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":""
|
||||
"segaIdAuthKey":"",
|
||||
"token": token,
|
||||
"clientId": clientId
|
||||
}
|
||||
result = await maimai.call_api(client, "GetUserPreviewApi", data, userId)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user