Get the status of a lock
https://euapi.ttlock.com/v3/lock/queryStatus
Get the status of a lock via gateway or WiFi lock, frozen or not.
Related APIs:Freeze lock, Unfreeze lock。
1 Request example
javascript
curl --location --request GET 'https://euapi.ttlock.com/v3/lock/queryStatus?clientId=4773aa036f7f49c68d876bb4be85c80c&accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f&lockId=163377&date=1626674054000'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 |
| lockId | Int | Y | Lock ID, generated by Lock init |
| date | Long | Y | Current time (timestamp in millisecond) |
3 Response and example
| Parameter | Type | Description |
|---|---|---|
| status | Int | Lock status: 0-not frozen, 1-frozen |
{
"status": 0
}