GetRobotGroupList
Gets the robot groups of the account; the "Default" group is not listed.
Examples
List the robot groups.
python
# api() is the function in the Python example on the signature authentication page
r = api('GetRobotGroupList')
for g in r['data']['result']['items']:
print(g['id'], g['name'])Returns
| Type | Description |
object | On success |
Attributes
| Name | Type | Description |
items[].id | number | Robot group ID, the |
items[].name | string | Robot group name. |
Remarks
Example response
json
{
"code": 0,
"data": {
"result": {
"items": [{
"id": 3417,
"name": "test"
}, {
"id": 3608,
"name": "demo"
}]
},
"error": null
}
}