POST api/Account/SignupByThirdPart

第三方注册

请求信息(Request)

URI 参数

None.

Body 参数

ThirdPartSignupDTO
名称描述类型备注
ThirdPart

第三方的具体平台(QQ/微信/微博等)

ThirdPart

None.

Name

第三方平台上的用户名称

string

None.

AvatarUrl

第三方平台上的用户头像

string

None.

Mobile

用户手机号码

string

None.

VerifyCode

短信验证码

string

None.

Password

登录密码

string

None.

EncryptMobile

加密的用户手机号码(与用户手机号码二选一,EncryptMobile优先级大于Mobile)

string

None.

EncryptIV

加解密用向量

string

None.

ThirdPartID

第三方的用户ID(unionid)

string

Required

ThirdPartID2

第三方的用户ID2(openid)

string

Required

ThirdPartAppid

第三方的Appid

string

Required

请求格式

application/json, text/json

Sample:
{
  "ThirdPart": 1,
  "Name": "sample string 1",
  "AvatarUrl": "sample string 2",
  "Mobile": "sample string 3",
  "VerifyCode": "sample string 4",
  "Password": "sample string 5",
  "EncryptMobile": "sample string 6",
  "EncryptIV": "sample string 7",
  "ThirdPartID": "sample string 8",
  "ThirdPartID2": "sample string 9",
  "ThirdPartAppid": "sample string 10"
}

application/xml, text/xml

Sample:
<ThirdPartSignupDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs">
  <AvatarUrl>sample string 2</AvatarUrl>
  <EncryptIV>sample string 7</EncryptIV>
  <EncryptMobile>sample string 6</EncryptMobile>
  <Mobile>sample string 3</Mobile>
  <Name>sample string 1</Name>
  <Password>sample string 5</Password>
  <ThirdPart>Weixin</ThirdPart>
  <ThirdPartAppid>sample string 10</ThirdPartAppid>
  <ThirdPartID>sample string 8</ThirdPartID>
  <ThirdPartID2>sample string 9</ThirdPartID2>
  <VerifyCode>sample string 4</VerifyCode>
</ThirdPartSignupDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ThirdPartSignupDTO'.

响应信息(Response)

资源描述

RequestResultOfOAuthToken
名称描述类型备注
Data

OAuthToken

None.

Status

状态(0:成功,1:失败)

integer

None.

Message

导致失败的相关消息

string

None.

Total

集合总数,用于分页时使用

integer

None.

响应格式

application/json, text/json

Sample:
{
  "Data": {
    "access_token": "sample string 1",
    "token_type": "sample string 2",
    "expires_in": 3,
    "userName": "sample string 4",
    "userId": "sample string 5",
    "refresh_token": "sample string 6",
    ".issued": "sample string 7",
    ".expires": "sample string 8"
  },
  "Status": 1,
  "Message": "sample string 2",
  "Total": 3
}

application/xml, text/xml

Sample:
<RequestResultOfOAuthToken6NgmDdgv xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application">
  <Message>sample string 2</Message>
  <Status>1</Status>
  <Total>3</Total>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs">
    <d2p1:AccessToken>sample string 1</d2p1:AccessToken>
    <d2p1:ExpiresAt>sample string 8</d2p1:ExpiresAt>
    <d2p1:ExpiresIn>3</d2p1:ExpiresIn>
    <d2p1:IssuedAt>sample string 7</d2p1:IssuedAt>
    <d2p1:RefreshToken>sample string 6</d2p1:RefreshToken>
    <d2p1:TokenType>sample string 2</d2p1:TokenType>
    <d2p1:UserId>sample string 5</d2p1:UserId>
    <d2p1:Username>sample string 4</d2p1:Username>
  </Data>
</RequestResultOfOAuthToken6NgmDdgv>