login 接口
用户登录,登录成功后会在 Cookie 存放 Session ID (Cookie: sid=e0f6b33dd2b575eff40733b3778beaab)。
请求方式
GET http://ip/mwapi?method=login&id=xxx&pass=xxx
参数 | 说明 |
---|---|
method | 方法名称:login |
id | 用户名。 |
pass | 密码,使用 MD5 加密。 |
返回数据
{
"status": 0
}
属性 | 说明 |
---|---|
status | 返回状态。0:登录成功,36: 用户名或密码错误,返回其它值请参考 API 状态码。 |
接口示例
http://192.168.66.1/mwapi?method=login&id=Admin&pass=e3afed0047b08059d0fada10f400c1e5