Lock init
https://api.sciener.com/v3/lock/initialize
Call this api after calling SDK method to add a lock. This api will create an admin ekey for current user. If lock is already added via Sciener's APP, there is no need to call this API, just call lock/list api to get the lock .
After initializing a lock, the admin can send ekey or create passcode for others.
Older version, refer to: https://open.sciener.com/doc/api/v3/lock/init.
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
lockData String Y Lock data, generated by SDK
lockAlias String N Lock alias
nbInitSuccess Int N Is NB-IoT lock inited Successfully? 1-yes, 0-no. Only NB-IoT lock need this parameter.
date Long Y Current time (timestamp in millisecond)
2.Response
Parameter Type Description
lockId Int Lock ID
keyId Int Admin ekey id
3.Example of response
{
    "lockId": 456456, 
    "keyId": 456456
}