文档
测试

2.3 login

POST
/api/user/login

接口描述

Members login

Headers

参数名
类型
描述
必填
Authorization
string
Example:9b358d8549004bd0bb48b3f94ae7e2a5
必填
Content-Language
string
Language packs (optional), the default language for opening an account, Example:ENG
必填

Form Data

参数名
类型
描述
必填
UserName
string
Username Example:ceshi01
必填
CateID
number
Optional, the game to enter. If you leave it blank or the game ID is wrong, you will enter the game lobby homepage by default. Please refer to Appendix 1 for the game ID code.
必填
MatchID
number
Optional, the event to be entered. If it is left blank or the match ID is wrong, it will enter the game lobby homepage by default. The current event can be obtained through the 3.1 interface.
必填

Response

参数名
类型
描述
必填
success
number
Example:1
必填
msg
string
Example : Login Successful
必填
info
object
Data dictionary
必填
Url
string
Example:https://xxx.avia-gaming.dev/start.html?api=xxx.avia-gaming.dev&token=********&language=CHN
必填

Description / Example

`curl https://api.xx.com/api/user/login -X POST -H "Authorization: 9b358d8549004bd0bb48b3f94ae7e2a5" -H "Content-Type:application/x-www-form-urlencoded" -d "UserName=ceshi01&LANGUAGE=CHN"` Response body example: ```language { "success":1, "msg":"Login Successful", "info":{ "Url":"https://xxx.avia-gaming.dev/start.html?api=xxx.avia-gaming.dev&token=********&language=CHN" } } ```