POST api/AccountV770/BindAccountAndPhone

第三方注册并绑定手机号

Request Information

URI Parameters

None.

Body Parameters

第三方注册信息

ZaiMieApp.WebApi.ViewModel.ThirdPartyUserView
NameDescriptionTypeAdditional information
userinfoId

integer

None.

uid

string

None.

openid

string

None.

newspapergroupId

integer

None.

headerImage

string

None.

city

integer

None.

deviceName

设备名称

string

None.

osVer

操作系统版本号

string

None.

appVer

App版本号

string

None.

mobileType

手机类型 1-Android 2-Iphone

integer

None.

mobileTypeName

手机类型名称(ios android)

string

None.

deviceKey

设备号

string

None.

screenPoint

屏幕分辨率

string

None.

pushKey

string

None.

sex

integer

None.

age

integer

None.

nickname

string

None.

phone

绑定的手机号

string

None.

code

验证码

string

None.

token

string

None.

comeFromType

来源;新浪 = 1,QQ = 2,微信 = 4,AppleID = 5,微信小程序 = 6,网安 = 7

integer

None.

sign

string

None.

stamp

string

None.

Request Formats

application/json, text/json

Sample:
{
  "userinfoId": 1,
  "uid": "sample string 2",
  "openid": "sample string 3",
  "newspapergroupId": 4,
  "headerImage": "sample string 5",
  "city": 6,
  "deviceName": "sample string 7",
  "osVer": "sample string 8",
  "appVer": "sample string 9",
  "mobileType": 10,
  "mobileTypeName": "sample string 11",
  "deviceKey": "sample string 12",
  "screenPoint": "sample string 13",
  "pushKey": "sample string 14",
  "sex": 15,
  "age": 16,
  "nickname": "sample string 17",
  "phone": "sample string 18",
  "code": "sample string 19",
  "token": "sample string 20",
  "comeFromType": 21,
  "sign": "sample string 22",
  "stamp": "sample string 23"
}

application/xml, text/xml

Sample:
<ThirdPartyUserView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <sign>sample string 22</sign>
  <stamp>sample string 23</stamp>
  <age>16</age>
  <appVer>sample string 9</appVer>
  <city>6</city>
  <code>sample string 19</code>
  <comeFromType>21</comeFromType>
  <deviceKey>sample string 12</deviceKey>
  <deviceName>sample string 7</deviceName>
  <headerImage>sample string 5</headerImage>
  <mobileType>10</mobileType>
  <mobileTypeName>sample string 11</mobileTypeName>
  <newspapergroupId>4</newspapergroupId>
  <nickname>sample string 17</nickname>
  <openid>sample string 3</openid>
  <osVer>sample string 8</osVer>
  <phone>sample string 18</phone>
  <pushKey>sample string 14</pushKey>
  <screenPoint>sample string 13</screenPoint>
  <sex>15</sex>
  <token>sample string 20</token>
  <uid>sample string 2</uid>
  <userinfoId>1</userinfoId>
</ThirdPartyUserView>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

code=101 有多个账号

ZaiMieApp.WebApi.ViewModel.ResultDataMsgOfZaiMieApp.WebApi.ViewModel.UserInfoView
NameDescriptionTypeAdditional information
success

boolean

None.

code

integer

None.

data

ZaiMieApp.WebApi.ViewModel.UserInfoView

None.

addcoin

integer

None.

message

string

None.

page

integer

None.

allPage

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "code": 2,
  "data": {
    "Id": 1,
    "nickname": "sample string 2",
    "userName": "sample string 3",
    "headerImage": "sample string 4",
    "backgroundImage": "sample string 5",
    "sex": 6,
    "loginSession": "sample string 7",
    "userDesc": "sample string 8",
    "score": 9,
    "birthday": "sample string 10",
    "city": 11,
    "cityName": "sample string 12",
    "constellation": "sample string 13",
    "age": 14,
    "phone": "sample string 15",
    "audit": {
      "isNickNameAudit": true,
      "isHeaderImageAudit": true,
      "isBackgroundImageAudit": true
    },
    "userCommunity": {
      "communityId": 1,
      "communityName": "sample string 2",
      "streetId": 3,
      "streetName": "sample string 4",
      "countyId": 5,
      "countyName": "sample string 6"
    },
    "userType": 16,
    "realName": "sample string 17",
    "idcard": "sample string 18",
    "registerTime": "sample string 19",
    "isNewUser": true,
    "profile": 21,
    "organizationUser": 22,
    "commentatorUser": 23,
    "talentAccount": 24,
    "sign": "sample string 25",
    "stamp": "sample string 26"
  },
  "addcoin": 3,
  "message": "sample string 4",
  "page": 5,
  "allPage": 6
}

application/xml, text/xml

Sample:
<ResultDataMsgOfUserInfoViewPr2Hy9OI xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <addcoin>3</addcoin>
  <allPage>6</allPage>
  <code>2</code>
  <data>
    <sign>sample string 25</sign>
    <stamp>sample string 26</stamp>
    <Id>1</Id>
    <age>14</age>
    <audit>
      <isBackgroundImageAudit>true</isBackgroundImageAudit>
      <isHeaderImageAudit>true</isHeaderImageAudit>
      <isNickNameAudit>true</isNickNameAudit>
    </audit>
    <backgroundImage>sample string 5</backgroundImage>
    <birthday>sample string 10</birthday>
    <city>11</city>
    <cityName>sample string 12</cityName>
    <commentatorUser>23</commentatorUser>
    <constellation>sample string 13</constellation>
    <headerImage>sample string 4</headerImage>
    <idcard>sample string 18</idcard>
    <isNewUser>true</isNewUser>
    <loginSession>sample string 7</loginSession>
    <nickname>sample string 2</nickname>
    <organizationUser>22</organizationUser>
    <phone>sample string 15</phone>
    <profile>21</profile>
    <realName>sample string 17</realName>
    <registerTime>sample string 19</registerTime>
    <score>9</score>
    <sex>6</sex>
    <talentAccount>24</talentAccount>
    <userCommunity>
      <communityId>1</communityId>
      <communityName>sample string 2</communityName>
      <countyId>5</countyId>
      <countyName>sample string 6</countyName>
      <streetId>3</streetId>
      <streetName>sample string 4</streetName>
    </userCommunity>
    <userDesc>sample string 8</userDesc>
    <userName>sample string 3</userName>
    <userType>16</userType>
  </data>
  <message>sample string 4</message>
  <page>5</page>
  <success>true</success>
</ResultDataMsgOfUserInfoViewPr2Hy9OI>