POST Basic/LoginByWX

“LoginByWX”的文档。

Request Information

Parameters

NameDescriptionAdditional information
req
“req”的文档。

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "weChatCode": "sample string 1"
}

application/xml, text/xml

Sample:
<WXLoginReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GPS.Contracts.App">
  <weChatCode>sample string 1</weChatCode>
</WXLoginReq>

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>