OkayAPI Docs


API Path: /api/App/User/Login

API Description: 热门 根据账号和md5后的密码进行会员登录

1
API Traffic
HTTP/HTTPS
Protocol
GET/POST
Method
UTF-8
Charset
JSON
Response

API Debug   


API Params

ParameterTypeRequiredDefaultNoteDescription
HTTP_APPKEYStringRequiredMIN: 32Common Put Your APPKEY
usernameStringRequiredMIN: 1;MAX: 50会员账号,开发者应用的会员,非开发者自己账号。进入会员列表可查看自己的应用会员。
passwordStringRequiredMIN: 32;MAX: 32MD5后的密码,须md5后传递,保持全部小写MD5加密工具
is_allow_manyBooleanOptaiontrue是否允许多设备同时登录,true/yes/1 表示:是,false/no/0 表示:否,不允许时会注销已登录的会话状态。
clientStringOptaionMAX: 30客户端,可用于纪录登录时的设备、版本或应用信息

API Debug

KEYREQUIREDVALUE
app_key *Required
username *Required
password *Required
is_allow_many Option
client Option

API Response

KEYTypeDescription
err_codeInt操作码,0登录成功,1登录失败,账号不存在;2登录失败,密码错误;3会员已过期,请联系管理员或开发者;4账号已被封号
err_msgString错误提示信息,err_code非0时参考此提示信息
uuidString全局唯一UUID,全局唯一用户ID
tokenString登录凭证,一个月内有效

HTTP Response Code

HTTP Status CodeDescription
Http Status = 200Success
Http Status = 400Illegal-Params
Http Status = 401Illegal-Token
Http Status = 402IP-Banned
Http Status = 404API-NOT-Exsits
Http Status = 406Illegal-APPKEY
Http Status = 407APPKEY-Expired-Out
Http Status = 408APPKEY-Busy
Http Status = 409Illegal-Sign
Http Status = 413API-Traffic-NOT-Enough
Http Status = 415API-LOCKED
Http Status = 500Internal-Server-Error