API Agreement
Overview
- Request protocol: HTTP
- Request method: by default, GET is used to request and commit data, and POST is used to upload a file.
- Request URL: http://IP/usapi?method=xxx¶m1=value1¶m2=value2...
- Return data format: when the status code is 200, it returns JSON data, otherwise it returns HTTP status codes.
- Login authentication: carry sid=xxxxxxxxx in cookies
Example Response
The JSON formatted data is as follows. The result attribute indicates an API Status Codes. The status 0 indicates a successful request, otherwise the request is failed.
{
"result": 0,
"cur-status": 65552,
"last-rec-status": 0,
"cur-time": 0,
"box-name": "Ultra Encode A304201201001",
...
}