Get the lock list of an account

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

List locks added by you,no matter it is added by Sciener APP or added by APP SDK and initialized by cloud API: Lock init

This API will only return locks which you are top administrator. Ekeys others shared to you can be queried by cloud API: ekey list.

If integrated with TTHotel, this API can also retrieve lists of power savers or lift controls. Simply add the parameter 'type': type = 1 for lock list, type = 2 for lift control list, and type = 3 for power saver list.

1 Request example

POST, ContentType:application/x-www-form-urlencoded

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockAliasStringNSearch by lock alias, fuzzy matching
groupIdIntNGroup ID,search by group, refer to: Add group for detail
pageNoIntYPage no, start from 1
pageSizeIntYItems per page, default 20, max 1000
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

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

The objects in the list

ParameterTypeDescription
lockIdIntLock ID, generated by Lock init
lockNameStringLock name
lockAliasStringLock alias
lockMacStringLock MAC
electricQuantityIntLock battery
featureValueStringcharacteristic value. it is used to indicate what kinds of feature do a lock support.
hasGatewayIntIs the lock binded to gateway:1-yes, 0-no
lockDataStringLock data, used to operate the lock
groupIdIntGroup id
groupNameStringGroup name
dateLongLock init time (timestamp in millisecond)