Get wireless keypads of a lock
https://cnapi.sciener.com/v3/wirelessKeypad/listByLock
List all wireless keypads added to a lock.
1 Request example
javascript
curl --location -g --request GET 'https://cnapi.sciener.com/v3/wirelessKeypad/listByLock?clientId=fd2ff35ee3d8424c8665c07b7b9a7f45&accessToken=780f7671b6e6be3010d9787f19207aca&lockId=1719&date=1625025703000'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 |
|---|---|---|
| list | JSONObject list of records |
The objects in the list
| Parameter | Type | Description |
|---|---|---|
| wirelessKeypadId | Int | Wireless keypad ID |
| wirelessKeypadNumber | String | Wireless keypad serial number |
| wirelessKeypadName | String | Wireless keypad name |
| wirelessKeypadMac | String | Wireless keypad MAC |
| electricQuantity | Int | Wireless keypad battery |
{
"list": [
{
"wirelessKeypadId": 4242,
"wirelessKeypadNumber": "1723612378",
"wirelessKeypadName":"Wireless keypad of front door lock",
"wirelessKeypadMac": "33:33:33:33:33:33",
"electricQuantity": 85
}
]
}