Files
wvg/python/schemes/GlobalTV.py
FoxRefire 64b86a1711 Refactor: Define loadBody API for make scheme file more concise
The loadBody() function allows more concise and intuitive loading of request bodies encoded in the scheme.
2024-06-07 04:03:37 +09:00

9 lines
225 B
Python

payload = loadBody("json")
challengeArr = list(challenge)
payload['license_request_data']=challengeArr
licence = await (await pyfetch(licUrl,
method="POST",
headers=licHeaders,
body=json.dumps(payload)
)).bytes()