|
Add fingerprint
https://api.sciener.com/v3/fingerprint/add
Call this api after a fingerprint has been added to the lock
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 |
fingerprintNumber |
String |
Y |
Fingerprint code |
fingerprintType |
Int |
Y |
Fingerprint type:1-normal, 4-cyclic |
fingerprintName |
String |
N |
Fingerprint name |
startDate |
Long |
N |
The time when it becomes valid, timestamp in milliseconds |
endDate |
Long |
N |
The time when it is expired, timestamp in milliseconds |
cyclicConfig |
JSONArray |
N |
The cyclic time configuration, the startTime and endTime off each week day must be the same at the moment |
date |
Long |
Y |
Current time (timestamp in millisecond) |
cyclicConfig
Parameter |
Type |
Description |
startTime |
Int |
Start time of cyclic, in minutes, for example 480 for 8:00 |
endTime |
Int |
End time of cyclic, in minutes, for example 1080 for 18:00 |
weekDay |
Int |
Week day, 1-7, 1 for monday and 7 for sunday. |
2.Response
Parameter |
Type |
Description |
fingerprintId |
Int |
Fingerprint ID |
3.Example of response
{
"fingerprintId": 24242
}
|