POST api/RelaxAccount/EmailLogin

邮箱登录接口

Request Information

URI Parameters

None.

Body Parameters

EmailLoginReq
NameDescriptionTypeAdditional information
email

string

None.

password

string

None.

code

验证码,目前仅在忘记密码时用到

string

None.

machineId

string

None.

pid

integer

None.

version

string

None.

language

zn-ch中文,en英文

string

None.

system

string

None.

token

string

None.

timeZone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "email": "sample string 1",
  "password": "sample string 2",
  "code": "sample string 3",
  "machineId": "sample string 4",
  "pid": 5,
  "version": "sample string 6",
  "language": "sample string 7",
  "system": "sample string 8",
  "token": "sample string 9",
  "timeZone": "sample string 10"
}

application/xml, text/xml

Sample:
<EmailLoginReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 7</language>
  <pid xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">5</pid>
  <system xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 8</system>
  <timeZone xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 10</timeZone>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 9</token>
  <version xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 6</version>
  <code>sample string 3</code>
  <email>sample string 1</email>
  <machineId>sample string 4</machineId>
  <password>sample string 2</password>
</EmailLoginReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

EmailRegistRes
NameDescriptionTypeAdditional information
userInfo

State为1表示成功,0服务器错误,-1之前的请求还未完成,2登录是的用户名或者密码错误

emailUser

None.

usercode

string

None.

headUrl

string

None.

gender

integer

None.

birthday

string

None.

nickName

string

None.

State

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "userInfo": {
    "username": "sample string 1",
    "uid": "sample string 2",
    "isVip": 3
  },
  "usercode": "sample string 1",
  "headUrl": "sample string 2",
  "gender": 3,
  "birthday": "sample string 4",
  "nickName": "sample string 5",
  "State": 6,
  "Message": "sample string 7"
}

application/xml, text/xml

Sample:
<EmailRegistRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <Message xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 7</Message>
  <State xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">6</State>
  <birthday>sample string 4</birthday>
  <gender>3</gender>
  <headUrl>sample string 2</headUrl>
  <nickName>sample string 5</nickName>
  <userInfo>
    <isVip>3</isVip>
    <uid>sample string 2</uid>
    <username>sample string 1</username>
  </userInfo>
  <usercode>sample string 1</usercode>
</EmailRegistRes>