Files
abot/gewechat/client/set_call_back.py
2025-04-23 12:04:46 +08:00

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)