Request
Add parameter in header Authorization
Example:Authorization: ********************
Body Params application/json
{
"pageSize": "100",
"pageIndex": "1",
"queryType": "Device",
"customerId": "string",
"deviceIds": "string",
"startDate": "string",
"endDate": "string"
}
Request Code Samples
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/device/traffic/page' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"pageSize": "100",
"pageIndex": "1",
"queryType": "Device",
"customerId": "string",
"deviceIds": "string",
"startDate": "string",
"endDate": "string"
}'
Responses
application/json {
"code": 0,
"data": {
"records": [
{
"deviceId": "",
"deviceName": "",
"trafficSize": 0
}
],
"total": 0,
"size": 0,
"current": 0
},
"msg": ""
}
Modified at 2025-11-06 09:30:01