Get the face list of a lock

https://api.sciener.com/v3/face/list

List all face that added to the lock.

1 Request example

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID, generated by Lock init
searchStrStringNSearch string (name fuzzy matching)
pageNoIntYPage no, start from 1
pageSizeIntYItems per page,max 200
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
listJSONArraylist of records
pageNoIntPage no, start from 1
pageSizeIntItems per page, max 200
pagesIntTotal number of pages
totalIntTotal number of records

The objects in the list

ParameterTypeDescription
faceIdIntFace ID
lockIdIntLock ID
nameStringFace name
faceNumberStringFace number
statusStringStatus: 1-normal、2-Invalidated、3-To be validated
nicknameStringCreator name
useridStringCreator Uid
typeIntFace type: 1-normal、4-recurring
startDateLongThe time when it becomes valid (timestamp in millisecond)
endDateLongThe time when it is expired (timestamp in millisecond)
cyclicConfigJSONArrayRecurring time period, the valid time period of each week day must be the same, for example:
[{"weekDay":1, "startTime":480,"endTime":1080},{"weekDay":2, "startTime":480,"endTime":1080}] for valid from 8:00 to 18:00 in Monday and Tuesday.
createDateLongCreate time (timestamp in millisecond)