Open Platform
Skip to content

Get lock battery ​

https://cnapi.sciener.com/v3/lock/queryElectricQuantity

Get the lock battery of a lock remotely via gateway or WiFi lock.

1 Request example ​

javascript
curl --location -g --request GET 'https://cnapi.sciener.com/v3/lock/queryElectricQuantity?clientId=fd2ff35ee3d8424c8665c07b7b9a7f45&accessToken=f6ee29dda68d962243fb91b047d319d3&lockId=163377&date=1548141056000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID, generated by Lock init
dateLongYCurrent time (timestamp in millisecond)

3 Response and example ​

ParameterTypeDescription
electricQuantityIntLock battery
{
    "electricQuantity": 85
}
CopyRight © 2012-2026 Sciener.All Rights Reserved