Key authorization

https://api.sciener.com/v3/key/authorize

Grant management rights of a lock to an ekey user,including rights of sending ekeys, creating passcodes,setting the lock, etc.

The user to be authorized must have an ekey,you can request cloud API: Send ekey to generate an ekey for that user。

If you want to cancel authorization of one user,refer to these two cloud APIs: Cancel key authorization, Delete the ekey.

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
lockIdIntYLock ID, generated by Lock init
keyIdIntYekey ID
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
errcodeIntError code
errmsgStringError message