mirror of
https://github.com/rodneyosodo/uber4freefood.git
synced 2026-06-23 04:10:18 +00:00
Track delivery
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import requests
|
||||
|
||||
values = """
|
||||
{
|
||||
"command": "track",
|
||||
"data": {
|
||||
"api_key": "mysendykey",
|
||||
"api_username": "mysendyusername",
|
||||
"order_no": "AA34BE331"
|
||||
},
|
||||
"request_token_id": "request_token_id"
|
||||
}
|
||||
"""
|
||||
|
||||
headers = {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
|
||||
url = "https://apitest.sendyit.com/v1/#track"
|
||||
|
||||
request = requests.post(url, data=values, headers=headers)
|
||||
|
||||
response_body = request.json
|
||||
print(response_body)
|
||||
Reference in New Issue
Block a user