Pagination
The amount of tracking numbers that can be put on a device is a lot, therefore pagination and limits can be helpful when building out a client.
The page and limit values can be set as part of query parameters on any list
endpoint.
notice the''
around the url when used in the following curl commands.
curl -H "Content-type: application/json" -H "X-Boxee-Auth: your-api-key 'https://api.box-ee.com/api/v1/tracking/list?page=2&limit=5'
{
"count": 5,
"msg": "ok",
"status_code": 200,
"trackings": [
{
"device_id": "4111dc25-0390-4284-a74f-62e939a99d5b",
"id": "295c0355-83da-4c26-9d30-eabd6d365091",
"pin_key": "1033",
"tracking_number": "10338"
},
{
"device_id": "4111dc25-0390-4284-a74f-62e939a99d5b",
"id": "b7c56a5a-7798-403a-b530-29342651a2ce",
"pin_key": "1010",
"tracking_number": "10103"
},
{
"device_id": "4111dc25-0390-4284-a74f-62e939a99d5b",
"id": "5b00398b-bc27-4b75-93c3-f48b3cd175c5",
"pin_key": "1048",
"tracking_number": "10482"
},
{
"device_id": "4111dc25-0390-4284-a74f-62e939a99d5b",
"id": "fb244439-9dbf-4faa-acce-8069b4ac0389",
"pin_key": "1002",
"tracking_number": "10020"
},
{
"device_id": "4111dc25-0390-4284-a74f-62e939a99d5b",
"id": "9fac43a4-5d02-470e-8b61-c58c0ae4fe9f",
"pin_key": "1003",
"tracking_number": "10033"
}
]
}