64b86a1711
The loadBody() function allows more concise and intuitive loading of request bodies encoded in the scheme.
10 lines
292 B
Python
10 lines
292 B
Python
payload = loadBody("json")
|
|
challengeB64 = base64.b64encode(challenge).decode()
|
|
payload['params']['object'] = challengeB64
|
|
licence = await (await pyfetch(licUrl,
|
|
method="POST",
|
|
headers=licHeaders,
|
|
body=json.dumps(payload)
|
|
)).json()
|
|
licence = licence['result']['object']['license']
|