Files
wvg/python/schemes/RedBee.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

7 lines
194 B
Python

req = loadBody("json")
b64challenge = base64.b64encode(challenge).decode()
req['message'] = b64challenge
res = await corsFetch(licUrl, "POST", licHeaders, req, "json")
licence = res['license']