Get lock battery
https://euapi.ttlock.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://euapi.ttlock.com/v3/lock/queryElectricQuantity?clientId=fd2ff35ee3d8424c8665c07b7b9a7f45&accessToken=f6ee29dda68d962243fb91b047d319d3&lockId=163377&date=1548141056000'2 Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token |
| lockId | Int | Y | Lock ID, generated by Lock init |
| date | Long | Y | Current time (timestamp in millisecond) |
3 Response and example
| Parameter | Type | Description |
|---|---|---|
| electricQuantity | Int | Lock battery |
{
"electricQuantity": 85
}