1.Overview
Get the room exit log.
II. Request Method
III. Parameter Description
| Attribute |
Type |
Constraint |
Explanation |
| accountSid |
String |
Required |
Account ID (accountSid and authToken are assigned by Lock Manager when applying for developer account)
|
| timestamp |
String |
Required |
Request timestamp |
| communityNo |
String |
Required |
Community No. |
| buildNo |
String |
Required |
Building No. |
| floorNo |
String |
Required |
Floor No. |
| roomNo |
String |
Required |
Room No. |
| startDate |
String |
Required |
The start date for filter log, format: 2020-01-01, time span not exceeding 31 days |
| endDate |
String |
Required |
The end date for filter log, format: 2020-01-01, time span not exceeding 31 days |
IV. Request URL
V. Generate Parameter Signature
Ⅰ. Add authToken parameter to POST key-value pairs (accountSid and authToken are assigned by Lock Manager when applying for developer account) to obtain original signature data.
Ⅱ. Sort the original signature data in dictionary order by parameter name.
Ⅲ.Joining together into a string like "key1=value1&key2=value2...". The key/value shall be encoded in x-www-form-urlencode.
Ⅳ. Calculate the SHA1 value of the string to obtain the parameter signature sig.
Note: this authToken should not be submitted to the network with the POST parameter.
VI. Request Example (Raw)
POST http://api.uclbrt.com/Home/Records/outByRoom?sig=d56ade1486d925717dc946181f6147c815494f21 HTTP/1.1
Host: api.uclbrt.com
Connection: Keep-Alive
Accept: application/json
Content-Length: 205
Content-Type: application/x-www-form-urlencoded
accountSid=98651082ab89c3f1b50f35caf794179f×tamp=1590379366&communityNo=1316879946&buildNo=001&floorNo=001&roomNo=R007&startDate=2020-05-25&endDate=2020-05-25
VII. Response Result
Parameter Description
| Attribute |
Explanation |
| id |
Record ID |
| opentime |
departure time |
Success:
{"status":200,"info":"success","data":[{"id":"162422","opentime":"2020-05-22 10:23"},...]}
Failure:
{"status":4007,"info":"application is not certified"}
VIII. SDK