Query the list of users whose DS3 are shared
https://cnapi.ttlock.com/v3/standaloneDoorSensor/listDoorSensorUser
1 Request example
POST, ContentType:application/x-www-form-urlencoded
javascript
curl --location -g --request POST 'https://cnapi.ttlock.com/v3/standaloneDoorSensor/listDoorSensorUser' \
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'doorSensorId=100123' \
--data-urlencode 'date=1625025703000'2 Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token |
| doorSensorId | Int | Y | door sensor ID |
| searchStr | String | N | Query Username |
| date | Long | Y | Current time (timestamp, in milliseconds) |
3 Response and example
| Parameter | Type | Description |
|---|---|---|
| list | JSONObject | list |
objects in the list
| Parameter | Type | Description |
|---|---|---|
| id | Int | Share ID |
| username | String | Name |
{
"list": [
{
"id": 264,
"username": "1"
}
]
}