POST api/msg/sendhouse

发送房源【需登录】

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

Request 信息

URI 参数

None.

Body 参数

参数

HouseModel
名称说明数据类型附加信息
Type

类别

HouseType

Required

HouId

房源Id,多个Id用逗号(,)隔开

string

Required

Platform

平台参数

string

Required

Info

加密的信息,加密内容详见User

string

Required

To

接收人ClientId

string

Required

CustId

接收人Id

string

None.

ConectionId

连接Id

string

Required

City

城市

string

Required

Request 数据格式

application/json, text/json

示例:
{
  "Type": 1,
  "HouId": "sample string 1",
  "Platform": "sample string 2",
  "Info": "sample string 3",
  "To": "sample string 4",
  "CustId": "sample string 5",
  "ConectionId": "sample string 6",
  "City": "sample string 7"
}

application/xml, text/xml

示例:
<HouseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Msg">
  <City>sample string 7</City>
  <ConectionId>sample string 6</ConectionId>
  <CustId>sample string 5</CustId>
  <Info>sample string 3</Info>
  <Platform>sample string 2</Platform>
  <To>sample string 4</To>
  <HouId>sample string 1</HouId>
  <Type>ES</Type>
</HouseModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

MsgResult
名称说明数据类型附加信息
IsOnline

是否在线

boolean

None.

Info

附带信息

Object

None.

MsgId

消息Id

integer

None.

PreviousId

前一条消息,可能为null

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "IsOnline": true,
  "Info": {},
  "MsgId": 3,
  "PreviousId": 1,
  "ErrorCode": 0,
  "Msg": "sample string 4"
}

application/xml, text/xml

示例:
<MsgResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Msg">
  <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 4</Msg>
  <Info />
  <IsOnline>true</IsOnline>
  <MsgId>3</MsgId>
  <PreviousId>1</PreviousId>
</MsgResult>