E-Fence: list
Overview
Return a collection of e-fence that match the API request parameters.
API URL
/api/fence/query
HTTP Method
GET
URL Parameters
Name | Type | Required | Description |
access_token or user_access_token |
String | Requires | Specify the API access_token of the account or the user_access_token obtained after the user logged in. |
Response
An HTTP code of 200 is responded for each successful data requests. The message body contains a JSON object listing all e-fence.
Examples
{
"code": 0,
"msg": "Successful operation",
"msg_en": "Successful operation",
"data": [
{
"id": 1,
"belongszone": 1,
"name": "Z-Fence 1",
"param": "[
{\"x\":-6.9714285714285715,\"y\":4.585714285714285}, {\"x\":-2.5142857142857142,\"y\":4.585714285714285},{\"x\":-2.5142857142857142,\"y\":1.042857142857143},{\"x\":-6.9714285714285715,\"y\":1.042857142857143}]",
"shape": 1,
"color": "#2699EC",
"alpha": 3,
"inout": null,
"fencetype": "1,2,3,8",
"fvisible": 0,
"create_time": "2022-02-07T02:21:59Z",
"update_time": "2022-03-08T06:38:07Z",
"status": 0,
"zone_name": "Zone 1"
},
......
],
"exe_time": "0.002053"
}