1.Overview
Get power switch information.
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.
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/getSwitchInfo?sig=5238550acac60d806e2b051feb19ac3c6657d425 HTTP/1.1
Host: api.uclbrt.com
Connection: Keep-Alive
Accept: application/json
Content-Length: 205
Content-Type: application/x-www-form-urlencoded
 
accountSid=cd40f2111e0b4b6c283435582aafbd37&timestamp=1615864011&communityNo=1316880539
VII. Response Result
Parameter Description
Attribute Explanation
mac Power SwitchmacAddress
roomname Room Type
roomnno Room No.
roomnum Lock No.
floorname Floor name
floornum Floor No.
buildername Building name
buildernum Building No.
Success:
{"status": 200,"info": "success","data": [{"mac": "343030023B2A","roomname": "qra","roomno": "a","roomnum": "001","floorname": "floor","floornum": "001","buildername": "builder","buildernum": "001"}]}
Failure:
{"status":5001,"info":"community data exception"}
VIII. SDK
Hardware Consulting
Software
After-sales
Hotline
400-0900843