17 lines
337 B
Python
17 lines
337 B
Python
import requests
|
|
import json
|
|
|
|
url = "/tools/setCallback"
|
|
|
|
payload = json.dumps({
|
|
"token": "{{gewe-token}}",
|
|
"callbackUrl": "http://www.baidu.com"
|
|
})
|
|
headers = {
|
|
'X-GEWE-TOKEN': '{{gewe-token}}',
|
|
'Content-Type': 'application/json'
|
|
}
|
|
|
|
response = requests.request("POST", url, headers=headers, data=payload)
|
|
|
|
print(response.text) |