- README
- Update Record
- token
- customer
- device
- fence
- push
- video
- alarm
- audio
- gallery
- fleet
- gps
- Protocol AnalysisPOST
devicePage
Singapore
Singapore
POST
/v2/openapi/device/page
Request
Header Params
Authorization
string
required
Body Params application/json
pageSize
integer | null
optional
Default:
100
pageIndex
integer | null
required
Default:
1
customerId
string | null
optional
deviceIds
string | null
optional
deviceName
string | null
optional
deviceType
string | null
optional
activeTimeStart
string | null
optional
activeTimeEnd
string | null
optional
subsumption
boolean | null
required
Example
{
"pageSize": "100",
"pageIndex": "1",
"customerId": "string",
"deviceIds": "string",
"deviceName": "string",
"deviceType": "string",
"activeTimeStart": "string",
"activeTimeEnd": "string",
"subsumption": true
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/device/page' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"pageSize": "100",
"pageIndex": "1",
"customerId": "string",
"deviceIds": "string",
"deviceName": "string",
"deviceType": "string",
"activeTimeStart": "string",
"activeTimeEnd": "string",
"subsumption": true
}'
Responses
🟢200Success
application/json
Body
code
integer | null
optional
data
object (PageResult«ApiDeviceInfoVO»)
optional
records
array[object (ApiDeviceInfoVO) {12}] | null
optional
total
integer | null
optional
size
integer | null
optional
current
integer | null
optional
msg
string | null
optional
Example
{
"code": 0,
"data": {
"records": [
{
"id": "",
"customerName": "",
"deviceName": "",
"deviceType": "",
"camCount": 0,
"timezone": "",
"activeTime": "",
"expirationTime": "",
"iccid": "",
"tripType": "",
"tripValue": "",
"createTime": ""
}
],
"total": 0,
"size": 0,
"current": 0
},
"msg": ""
}
Modified at 2024-11-27 03:17:54