The loadBody() function allows more concise and intuitive loading of request bodies encoded in the scheme.
9 lines
225 B
Python
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()
|