Open Platform
Skip to content

Get Group List ​

https://cnapi.sciener.com/v3/electricMeter/listGroup

Get the groups of electricity meters under your name.

1 Request example ​

POST, ContentType:application/x-www-form-urlencoded

sh
curl --location -g --request POST 'https://cnapi.sciener.com/v3/electricMeter/listGroup' \
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'date=1625025703000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYAssigned client_id from created application
accessTokenStringYAccess token, obtain by calling get access token API
dateLongYCurrent time (timestamp, in milliseconds)

3 Response and example ​

NameTypeDescription
listJSONObjectList

Objects in the list

NameTypeDescription
groupIdIntGroup ID (groupId of 0 indicates no group)
groupNameStringGroup Name
electricMeterCountIntNumber of electricity meters
json
{
    "list": [
        {
            "groupName": "Group1",
            "electricMeterCount": 1,
            "groupId": 92
        },
        {
            "groupName": "Group2",
            "electricMeterCount": 0,
            "groupId": 93
        },
        {
            "electricMeterCount": 2,
            "groupId": 0
        }
    ]
}
CopyRight © 2012-2026 Sciener.All Rights Reserved