IotHub
  1. fence
IotHub
  • README
  • Update Record
  • token
    • createToken
      POST
    • destroyToken
      POST
  • customer
    • customerPage
      POST
    • customerTree
      POST
  • device
    • command
      • commandSend
      • commandInfoList
      • cutOilElectric
      • getConfig
    • devicePage
      POST
    • deviceTypes
      POST
    • deviceTypeInfo
      POST
    • deviceDataByDeviceIds
      POST
    • deviceDataByCustomerId
      POST
    • deviceTripInfoByTripId
      POST
    • deviceTripsByDeviceId
      POST
    • expandInfoByDeviceId
      POST
    • saveDeviceChannelName
      POST
  • fence
    • fencePage
      POST
    • fenceInfo
      POST
    • addFence
      POST
    • saveFence
      POST
    • delFence
      POST
    • fenceDevices
      POST
    • fenceDeviceUpdate
      POST
    • fenceDeviceDel
      POST
    • fenceDeviceAdd
      POST
  • push
    • README
  • video
    • H5 page
    • H5 Page-V2
    • liveVideo
    • playBackList
    • historicalUpload
    • playBack
    • replaySet
    • taskPage
    • taskDelete
    • getNodes
  • alarm
    • alarmTypeList
    • alarmFilePage
    • alarmFileByAlarmId
    • alarmHistoryPage
    • alarmPageByUser
  • audio
    • README
    • talk
    • talkPlus
  • gallery
    • filePageV2
    • filePage
    • deleteFile
    • capture
    • capturePage
  • fleet
    • faceRecordPage
  • gps
    • historyData
  • Protocol Analysis
    POST
  1. fence

fencePage

Singapore
https://mettahub.mettaxiot.com/gps
Singapore
https://mettahub.mettaxiot.com/gps
POST
/v2/openapi/fence/page

Request

Header Params
Authorization
string 
required
Body Params application/json
pageSize
integer  | null 
optional
pageSize,default 100,can't change
Default:
null
pageIndex
integer  | null 
required
Default:
null
customerId
string  | null 
optional
Default:
null
fenceName
string  | null 
optional
Default:
null
fenceType
integer  | null 
optional
0-circle 1- irregular shape
Default:
null
Example
{
    "pageSize": "null",
    "pageIndex": "null",
    "customerId": "null",
    "fenceName": "null",
    "fenceType": "null"
}

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/fence/page' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "pageSize": "null",
    "pageIndex": "null",
    "customerId": "null",
    "fenceName": "null",
    "fenceType": "null"
}'

Responses

🟢200Success
application/json
Body
code
integer  | null 
optional
Default:
null
data
object (ApiPageResult«ApiFenceInfoVO») 
optional
records
array[object (ApiFenceInfoVO) {6}]  | null 
optional
Default:
null
total
integer  | null 
optional
Default:
null
size
integer  | null 
optional
Default:
null
current
integer  | null 
optional
Default:
null
msg
string  | null 
optional
Default:
null
Example
{
  "code": 0,
  "data": {
    "records": [
      {
        "id": "",
        "fenceName": "",
        "customerId": "",
        "remark": "",
        "fenceType": 0,
        "fenceRange": ""
      }
    ],
    "total": 0,
    "size": 0,
    "current": 0
  },
  "msg": ""
}
Modified at 2024-01-02 08:07:08
Previous
saveDeviceChannelName
Next
fenceInfo
Built with