https://api.sciener.com/v3/lock/queryOpenState
Get the open state of a lock via gateway or WiFi lock. If the lock is also bound to a door sensor, this API also returns the door sensor status
xxxxxxxxxxcurl --location --request GET 'https://api.sciener.com/v3/lock/queryOpenState?clientId=4773aa036f7f49c68d876bb4be85c80c&accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f&lockId=163377&date=1626674054000'| 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) |
| Parameter | Type | Description |
|---|---|---|
| state | Int | Open state of lock:0-locked,1-unlocked,2-unknown |
xxxxxxxxxx{"state": 1}