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 asyncio
|
||||||
import httpx
|
|
||||||
|
from chime import *
|
||||||
from sdgb import MaimaiClient
|
from sdgb import MaimaiClient
|
||||||
from settings import *
|
from settings import *
|
||||||
|
|
||||||
maimai = MaimaiClient()
|
maimai = MaimaiClient()
|
||||||
|
|
||||||
|
userId = qr_api(qrCode)['userID']
|
||||||
|
token = qr_api(qrCode)['token']
|
||||||
|
|
||||||
async def run_workflow(maimai):
|
async def run_workflow(maimai):
|
||||||
async with httpx.AsyncClient(verify=False) as client:
|
async with httpx.AsyncClient(verify=False) as client:
|
||||||
data = {
|
data = {
|
||||||
"userId": userId,
|
"userId": userId,
|
||||||
"segaIdAuthKey":""
|
"segaIdAuthKey":"",
|
||||||
|
"token": token,
|
||||||
|
"clientId": clientId
|
||||||
}
|
}
|
||||||
result = await maimai.call_api(client, "GetUserPreviewApi", data, userId)
|
result = await maimai.call_api(client, "GetUserPreviewApi", data, userId)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user