POST api/broker/getrandombrokerwithouthouse

获取随机经纪人(不带房源),如:房价接口的随机6个经纪人

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

Request 信息

URI 参数

None.

Body 参数

RandomBrokerModel
名称说明数据类型附加信息
BuildingName

小区名

string

None.

Limit

返回的条数,默认3条

integer

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "BuildingName": "sample string 1",
  "Limit": 1,
  "City": "sample string 2",
  "Token": "sample string 3",
  "Platform": "sample string 4"
}

application/xml, text/xml

示例:
<RandomBrokerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Broker">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 4</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 2</City>
  <BuildingName>sample string 1</BuildingName>
  <Limit>1</Limit>
</RandomBrokerModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

BrokerRandomWithoutHouseResult
名称说明数据类型附加信息
Brokers

经纪人

Collection of BrokerWithoutHouse

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Brokers": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Level": 3,
      "Photo": "sample string 4",
      "CompanyName": "sample string 5",
      "Tel": "sample string 6"
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Level": 3,
      "Photo": "sample string 4",
      "CompanyName": "sample string 5",
      "Tel": "sample string 6"
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<BrokerRandomWithoutHouseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Broker">
  <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>
  <Brokers>
    <BrokerRandomWithoutHouseResult.BrokerWithoutHouse>
      <CompanyName>sample string 5</CompanyName>
      <Id>1</Id>
      <Level>3</Level>
      <Name>sample string 2</Name>
      <Photo>sample string 4</Photo>
      <Tel>sample string 6</Tel>
    </BrokerRandomWithoutHouseResult.BrokerWithoutHouse>
    <BrokerRandomWithoutHouseResult.BrokerWithoutHouse>
      <CompanyName>sample string 5</CompanyName>
      <Id>1</Id>
      <Level>3</Level>
      <Name>sample string 2</Name>
      <Photo>sample string 4</Photo>
      <Tel>sample string 6</Tel>
    </BrokerRandomWithoutHouseResult.BrokerWithoutHouse>
  </Brokers>
</BrokerRandomWithoutHouseResult>