Upload lock battery

https://api.sciener.com/v3/lock/updateElectricQuantity

Upload the lock battery, which is get from APP SDK method, to server.

Sciener APP will upload lock battery to cloud when unlocking the lock by APP, you may follow this practices.

1 Request example

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

2 Request parameters

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

3 Response and example

ParameterTypeDescription
errcodeIntError code
errmsgStringError message