POST api/member/login

用户登录API

Request Information

URI Parameters

None.

Body Parameters

用户凭据

AppMemberLoginCredetial
NameDescriptionTypeAdditional information
id

MemberID

None.

name

string

None.

avatar

string

None.

password

string

None.

gender

MemberGender

None.

source

MemberSource

None.

token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": {
    "appid": "sample string 1",
    "userid": "sample string 2"
  },
  "name": "sample string 1",
  "avatar": "sample string 2",
  "password": "sample string 3",
  "source": 0,
  "token": "sample string 4"
}

application/xml, text/xml

Sample:
<AppMemberLoginCredetial xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XCoin.Models">
  <avatar>sample string 2</avatar>
  <id>
    <appid>sample string 1</appid>
    <userid>sample string 2</userid>
  </id>
  <name>sample string 1</name>
  <password>sample string 3</password>
  <source>Weixin</source>
  <token>sample string 4</token>
</AppMemberLoginCredetial>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AjaxReturn

AjaxReturn
NameDescriptionTypeAdditional information
error

boolean

None.

message

string

None.

url

string

None.

data

Object

None.

exceptions

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "error": true,
  "message": "sample string 2",
  "url": "sample string 3",
  "data": {},
  "exceptions": {}
}

application/xml, text/xml

Sample:
<AjaxReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XCoin">
  <additional />
  <error>true</error>
  <exceptions />
  <message>sample string 2</message>
  <url>sample string 3</url>
</AjaxReturn>