Get Group List
https://cnapi.sciener.com/v3/waterMeter/listGroup
Get the water meter groups under your name.
1 Request example
POST, ContentType:application/x-www-form-urlencoded
json
curl --location -g --request POST 'https://cnapi.sciener.com/v3/waterMeter/listGroup' \
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'date=1625025703000'2 Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | Assigned client_id from created application |
| accessToken | String | Y | Access token, obtain by calling get access token API |
| date | Long | Y | Current time (timestamp, in milliseconds) |
3 Response and example
| Name | Type | Description |
|---|---|---|
| list | JSONObject | List |
Objects in the list
| Name | Type | Description |
|---|---|---|
| groupId | Int | Group ID (groupId of 0 indicates no group) |
| groupName | String | Group Name |
| waterMeterCount | Int | Number of water meters |
json
{
"list": [
{
"groupName": "Group1",
"waterMeterCount": 1,
"groupId": 92
},
{
"groupName": "Group2",
"waterMeterCount": 0,
"groupId": 93
},
{
"waterMeterCount": 2,
"groupId": 0
}
]
}