64b86a1711
The loadBody() function allows more concise and intuitive loading of request bodies encoded in the scheme.
6 lines
200 B
Python
6 lines
200 B
Python
req = loadBody("json")
|
|
b64challenge = base64.b64encode(challenge).decode()
|
|
req['licenseRequest'] = b64challenge
|
|
res = await corsFetch(licUrl, "POST", licHeaders, req, "json")
|
|
licence = res['license']
|