Get the open state of a lock
https://api.sciener.com/v3/lock/queryOpenState
Get the open state of a lock via gateway
1. Description
Name |
Type |
Required |
Description |
clientId |
String |
Y |
The app_id which is assigned by system when you create an application |
accessToken |
String |
Y |
Access token |
lockId |
Int |
Y |
Lock ID |
date |
Long |
Y |
Current time (timestamp in millisecond) |
2.Response
Parameter |
Type |
Description |
state |
Int |
Open state of lock:0-locked,1-unlocked,2-unknown |
3.Example of response
{
"state": 1
}