https://api.sciener.com/v3/remote/listByLock
List all remotes added to a lock.
xxxxxxxxxxcurl --location -g --request GET 'https://api.sciener.com/v3/remote/listByLock?clientId=fd2ff35ee3d8424c8665c07b7b9a7f45&accessToken=780f7671b6e6be3010d9787f19207aca&lockId=1719&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 |
| orderBy | Int | Y | Sort by: 0-by name, 1-reverse order by time, 2-reverse order by name |
| date | Long | Y | Current time (timestamp in millisecond) |
| Parameter | Type | Description |
|---|---|---|
| list | JSONObject list of records |
The objects in the list
| Parameter | Type | Description |
|---|---|---|
| remoteId | Int | Remote ID |
| name | String | Name |
| mac | String | Mac address |
| electricQuantity | Int | Battery |
| status | String | Status:1-normal、2-expirex、3-pending |
| nickname | String | Creator nickname |
| userId | String | Creator username |
| startDate | Long | The time when it becomes valid (timestamp in millisecond) |
| endDate | Long | The time when it becomes valid (timestamp in millisecond) |
| type | Int | Type: 1-normal, 4-recurring |
| cyclicConfig | JsonArray | Recurring 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. |
| createDate | Long | Create date |
xxxxxxxxxx{"list": [{"remoteId": 4242,"number": "RC_a8179f","name":"Front door remote","mac": "33:33:33:33:33:33","electricQuantity": 85,"type":1,"nickname":"张三","status":1"userid":"zhangsan@gmail.com""startDate":1625025703000,"endDate":1645025703000,"createDate":1625025703000}]}