login
Use this interface to log in. The cookie will carry the session ID after you log in successfully. For example, Cookie: sid=e0f6b33dd2b575eff40733b3778beaab.
HTTP Request
GET http://ip/usapi?method=login&id=xxx&pass=xxx
Parameter |
Description |
method |
login |
id |
Indicates user name. |
pass |
Indicates MD5 encrypted password. |
Response Body
{
"result": 0
}
Item |
Description |
result |
0: the request was accepted successfully. 36: the username or password is incorrect. Refer to API Status Codes to find specific description for other values. |