POST Basic/Login
“Login”的文档。
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| req | “req”的文档。 |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"username": "sample string 1",
"password": "sample string 2",
"weChatCode": "sample string 3"
}
application/xml, text/xml
Sample:
<LoginReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GPS.Contracts.App"> <password>sample string 2</password> <username>sample string 1</username> <weChatCode>sample string 3</weChatCode> </LoginReq>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
{
"data": {
"level": 1,
"token": "sample string 2",
"userName": "sample string 3",
"name": "sample string 4",
"phone": "sample string 5",
"account": {
"name": "sample string 1",
"remark": "sample string 2"
}
},
"code": 1,
"msg": "sample string 2"
}
application/xml, text/xml
Sample:
<LoginResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GPS.Contracts.App">
<code>1</code>
<msg>sample string 2</msg>
<data>
<account>
<name>sample string 1</name>
<remark>sample string 2</remark>
</account>
<level>1</level>
<name>sample string 4</name>
<phone>sample string 5</phone>
<token>sample string 2</token>
<userName>sample string 3</userName>
</data>
</LoginResp>