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.
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxxcurl --location -g --request POST 'https://api.sciener.com/v3/key/authorize' \--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \--data-urlencode 'lockId=163377' \--data-urlencode 'keyId=27619' \--data-urlencode 'date=1625025703000'| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token |
| lockId | Int | Y | Lock ID, generated by Lock init |
| keyId | Int | Y | ekey ID |
| date | Long | Y | Current time (timestamp in millisecond) |
| Parameter | Type | Description |
|---|---|---|
| errcode | Int | Error code |
| errmsg | String | Error message |
xxxxxxxxxx{"errcode": 0,"errmsg": "none error message"}