Automatic Outbound Call to Obtain Robot Scripts List
Request Address
Request Parameters
Parameter | Type | Nullable | Description |
---|
pageNum | int | true | Page number |
pageSize | int | true | Number of items per page |
usable | boolean | true | Usability flag |
Response Parameters
Parameter | Type | Nullable | Description |
---|
succeed | boolean | false | Processing identifier |
code | String | false | Return code |
bizCode | String | false | Business code |
message | String | false | Return message |
visible | boolean | false | Visibility indicator |
paging | Object | false | Pagination information |
paging.pageNum | int | false | Page number, default is 1 |
paging.pageSize | int | false | Number of items per page, default is 20 |
paging.total | Long | false | Total number of queries |
data | Array | true | Result set |
data[].id | Long | false | Robot ID |
data[].robotDefId | Long | false | Robot default ID |
data[].name | String | false | Robot name |
Request Example
$ curl 'https://ip:port/api/v1/robots/simple?usable=true&pageNum=1&pageSize=2&AppId={appid}&Timestamp={mytime}&Token={Token}' -i -X GET -H 'Content-Type: application/json'
Response Example
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 522
{
"succeed": true,
"code": 200,
"bizCode": "000000",
"message": "OK",
"visible": false,
"paging": {
"pageNum": 1,
"pageSize": 2,
"total": 2
},
"data": [
{
"id": 1,
"robotDefId": 30544,
"name": "Script 01"
},
{
"id": 2,
"robotDefId": 30541,
"name": "Script 02"
}
]
}