getOpenDoorRecord: Get the door opening record
getOpenDoorRecord: Get the door opening record
Function details
Obtain the door opening record of the door lock device.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/getOpenDoorRecord
Minimum permissions required for sub-account token request
"Permission":"Config" "Resource":"dev:serial number"
Incoming parameter description
| Parameter name | Parameter type | Required or not | Default value | Legal value | Parameter description |
|---|---|---|---|---|---|
| token | String | Yes | Administrator or sub-account accessToken | ||
| deviceId | String | Yes | Door lock device serial number | ||
| recordId | String | Yes | The first request is -1, and each subsequent request will be the last record id in the last request | Unlocking record id | |
| count | Integer | Yes | Number of this query |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"85384489874412a2e9aa7ac3a8b08309",
"time":1603350639,
"nonce":"350f4c7a-a352-46cf-ae03-f4f526f5d99f"
},
"id":"b8f45dbb-79ad-4a7e-8b24-7eb618c5191f",
"params":{
"token":"At_00000ad9e6e87f0142eb92e207aec46a",
"deviceId":"TESTQWERXXXX",
"recordId":"-1",
"count":30
}
}
Return data field description
| Field name | Field type | Field description | |
|---|---|---|---|
| records | recordId | String | Unlocking record id |
| type | String | Key type: password: password; card: card; fingerPrint: fingerprint; face: face | |
| name | String | Secret key name | |
| localTime | String | Unlocking time, time format: yyyyMMddTHHmmss | |
Sample output
{
"id":"b8f45dbb-79ad-4a7e-8b24-7eb618c5191f",
"result":{
"code":"0",
"msg":"successful operation",
"data": {
"records":[
{
"recordId": "1221",
"type": "password",
"name": "password 1",
"localTime": "20200331T173932"
}
]
}
}
}
