URL: http://your_ip:port/token/getToken
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 获取Token
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
name | string | 用户名 | true | - |
pass | string | 密码 | true | - |
Request-example:
curl -i http://your_ip:port/token/getToken?pass=7ne0ki&name=鹤轩.白
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
Response-example:
{
"success":true,
"status":"8t8a21",
"msg":"dxdaxr",
"obj":{
"waring":"You may have used non-display generics."
}
}