https://api.sciener.com/v3/waterMeter/list
This interface retrieves water meters added by users in the TechHero app, or water meters initialized via the initialization lock interface through the app SDK.
For water meters added in the TechHero app, please use the app's username and password used to add the water meter to obtain an access token before calling this interface.
For water meters initialized via the cloud-based initialization lock interface, please use the same access token used when initializing the water meter.
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxx41curl --location -g --request POST 'https://api.sciener.com/v3/waterMeter/list'\2--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \3--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \4--data-urlencode 'date=1625025703000'| 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) |
| groupId | Int | N | Water Meter ID |
| searchStr | String | N | Search criteria include searching by meter name and meter number/water meter ID list. |
| pageNo | Int | Y | Page numbers start from 1 |
| pageSize | Int | Y | Number of pages per page, maximum 1000 |
| Name | Type | Description |
|---|---|---|
| list | JSONObject | List |
| total | Int | Total number of items |
Objects in the list
| Name | Type | Description |
|---|---|---|
| waterMeterId | Int | Water Meter ID |
| online | Int | Online status: 0 - No 1 - Yes |
| rssi | Int | Signal strength |
| onOff | Int | Water supply status: 0 - No 1 - Yes 2 - Unknown |
| name | String | Water meter name |
| number | String | Water meter number |
| payMode | Int | Operating modes: 0 - Energy metering mode; 1 - Prepaid mode |
| totalM3 | String | Total water consumption |
| remainderM3 | String | Remaining water volume |
| price | String | Unit price |
| electricQuantity | Int | Battery |
xxxxxxxxxx151{2 "list": [3 {4 "number": "EM2_005012",5 "payMode": 1,6 "price": "10.00",7 "name": "EM2_005012",8 "online": 0,9 "waterMeterId": 270,10 "remainderM3": "0.00",11 "onOff": 1,12 "totalM3": "0.00"13 }14 ]15}