Get common ekeys of a lock
https://api.sciener.com/v3/lock/listKey
1. Description
Name |
Type |
Required |
Description |
clientId |
String |
Y |
The app_id which is assigned by system when you create an application |
accessToken |
String |
Y |
Access token |
lockId |
Int |
Y |
Lock ID |
pageNo |
Int |
Y |
Page, start from 1 |
pageSize |
Int |
Y |
Items per page, default 20, max 100 |
date |
Long |
Y |
Current time (timestamp in millisecond) |
2.Response
Parameter |
Type |
Description |
list |
JSONArray |
Record list |
The objects of the returning data
Parameter |
Type |
Description |
keyId |
Int |
ekey ID |
lockId |
Int |
Lock ID |
openid |
Int |
Openid of an ekey owner |
username |
String |
Username of an ekey owner |
keyName |
String |
Key name |
keyStatus |
String |
ekey status |
startDate |
Long |
The time when it becomes valid, timestamp in milliseconds |
endDate |
Long |
The time when it is expired, timestamp in milliseconds |
keyRight |
String |
Is key authorized:0-NO,1-yes |
senderUsername |
String |
The sender's username |
remarks |
String |
Comment |
date |
Long |
Send time |
3.Example of response
{
"list": [
{
"keyId": 21703,
"lockId": 3215,
"openid": 1234567890,
"username": "1234567890",
"keyStatus": "110402",
"startDate": 0,
"endDate": 0,
"remarks": "this is for you ",
"date": 1449816232000
}
]
}