POST api/common/askhouse

短信问房

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

AskHouseModel
名称说明数据类型附加信息
Name

姓名

string

Required

Sex

性别

string

Required

Phone

手机号码

string

Required

Mobile

经纪人手机号码

string

Required

Code

手机验证码

string

Required

SmsItem

咨询的问题,如AH1、AH2

Collection of SmsAskHouse

Required

HouseCommend

房源标题

string

Required

HouId

房源id

integer

Required

HouseType

房源类型

HouseType

Required

CustId

经纪人id

integer

Required

RegionCode

区域Code

string

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Name": "sample string 1",
  "Sex": "sample string 2",
  "Phone": "sample string 3",
  "Mobile": "sample string 4",
  "Code": "sample string 5",
  "SmsItem": [
    0,
    0
  ],
  "HouseCommend": "sample string 6",
  "HouId": 7,
  "HouseType": 1,
  "CustId": 8,
  "RegionCode": "sample string 9",
  "City": "sample string 10",
  "Token": "sample string 11",
  "Platform": "sample string 12"
}

application/xml, text/xml

示例:
<AskHouseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Common">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 12</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 11</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 10</City>
  <Code>sample string 5</Code>
  <CustId>8</CustId>
  <HouId>7</HouId>
  <HouseCommend>sample string 6</HouseCommend>
  <HouseType>ES</HouseType>
  <Mobile>sample string 4</Mobile>
  <Name>sample string 1</Name>
  <Phone>sample string 3</Phone>
  <RegionCode>sample string 9</RegionCode>
  <Sex>sample string 2</Sex>
  <SmsItem xmlns:d2p1="http://schemas.datacontract.org/2004/07/API">
    <d2p1:SmsAskHouse>AH1</d2p1:SmsAskHouse>
    <d2p1:SmsAskHouse>AH1</d2p1:SmsAskHouse>
  </SmsItem>
</AskHouseModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

AskHouseResult
名称说明数据类型附加信息
ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<AskHouseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Common">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 1</Msg>
</AskHouseResult>