Last Updated on : 2023-12-07 03:33:54
Get the data set of unlocking methods that are bound with members.
GET: /v1.0/smart-lock/devices/{device_id}/opmodes/{user_id}
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | The device ID. |
user_id | String | uri | true | The user ID. |
codes | String | query | true | The unlocking methods, separated with commas (,). The value can be an empty string. Valid values:
|
unlock_name | String | query | true | The names of the target unlocking methods. The value can be an empty string. |
page_no | Integer | query | true | The current page number, starting from 1 . |
page_size | Integer | query | true | The number of entries per page. |
Parameter name | Type | Description |
---|---|---|
result | OpenApiPagination |
Description of result
Parameter name | Type | Description |
---|---|---|
total | Integer | The total number of entries. |
total_pages | Integer | The total number of pages. |
has_more | Boolean | Indicates whether additional data is available. |
records | List | The entries on pages. |
Description of records
Parameter name | Type | Description |
---|---|---|
user_name | String | The username. |
user_type | Integer | The user type. Valid values:
|
user_id | String | The user ID. |
lock_user_id | Integer | The user ID on the lock. |
unlock_name | String | The name of the unlocking method. |
dp_code | String | The standard DP code of the unlocking method. |
unlock_sn | Integer | The number of the unlocking method. |
unlock_attr | Integer | The attribute of the unlocking method. 1 indicates the duress attribute. |
phase | Integer | The status.
|
notify_info | UnlockNotifyInfo | The notification method. |
voice_attr | Integer | The attribute of voice control. Valid values:
|
operate | String | The operation. Valid values:
|
delivery_status | String | The delivery status. Valid value:
|
allocate_flag | Integer | Indicates whether the unlocking method has never been allocated to a user. If yes, it can be unbound. Valid values:
|
channel_id | Integer | The channel ID. |
Description of notify_info
Parameter name | Type | Description |
---|---|---|
app_send | Boolean | Indicates whether to show notifications on the app. Valid values:
|
voice_phone | String | |
owner_id | String |
GET: /v1.0/smart-lock/devices/6c982a30639b8f6338****/opmodes/33970143?page_size=20&page_no=1&codes=unlock_fingerprint,unlock_password,unlock_card&unlock_name=
{
"result": {
"records": [
{
"allocate_flag": 1,
"unlock_name": "Card 3",
"user_name": "James",
"unlock_sn": 3,
"unlock_attr": 0,
"voice_attr": 0,
"user_type": 10,
"user_id": "36731989",
"dp_code": "unlock_card",
"channel_id": -1,
"lock_user_id": 1
},
{
"allocate_flag": 1,
"unlock_name": "Face 0",
"user_name": "James",
"unlock_sn": 0,
"unlock_attr": 0,
"voice_attr": 0,
"user_type": 10,
"user_id": "36731989",
"dp_code": "unlock_face",
"channel_id": -1,
"lock_user_id": 1
},
{
"allocate_flag": 1,
"unlock_name": "Fingerprint 0",
"user_name": "James",
"unlock_sn": 0,
"unlock_attr": 0,
"voice_attr": 0,
"user_type": 10,
"user_id": "36731989",
"dp_code": "unlock_fingerprint",
"channel_id": -1,
"lock_user_id": 1
}
],
"total_pages": 1,
"total": 3,
"has_more": false
},
"t": 1630310979003,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback