- Notifications
You must be signed in to change notification settings - Fork 522
Expand file tree
/
Copy pathtest.py
More file actions
Latest commit
15 lines (11 loc) · 445 Bytes
/
Copy pathtest.py
File metadata and controls
15 lines (11 loc) · 445 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
importrequests
url="http://210.1.227.58:9001/api/setcallback.php"
payload="{\"wid\": \"33758168184\", \"callback_url\": \"http://43.153.104.20:5000/api/callback\"}"
headers= {
'content-type': "application/json",
'cache-control': "no-cache",
'postman-token': "c59c7e50-06e8-c3a0-6090-2f9861e7e03d"
}
response=requests.request("POST", url, data=payload, headers=headers)
print(response.status_code)
print(response.text)