POST api/trade/getrecommendlist

获取推荐二手房(无税、学区房、急售、专家房源)

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

Request 信息

URI 参数

None.

Body 参数

参数

CityListModel
名称说明数据类型附加信息
Pi

PageIndex 页码,默认1

integer

None.

Ps

PageSize 页容量,默认20,最大50

integer

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Pi": 1,
  "Ps": 1,
  "City": "sample string 1",
  "Token": "sample string 2",
  "Platform": "sample string 3"
}

application/xml, text/xml

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

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

TradeRecommendResult
名称说明数据类型附加信息
Trades

二手房列表

Collection of TradeRecommend

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Trades": [
    {
      "Id": 1,
      "BuildingID": 2,
      "HollCount": 3,
      "RoomCount": 4,
      "BldgArea": 5.1,
      "Pics": "sample string 6",
      "BuildingName": "sample string 7",
      "Floor": 8,
      "FloorCount": 9,
      "RefPrice": 10.1,
      "TypeName": "sample string 11"
    },
    {
      "Id": 1,
      "BuildingID": 2,
      "HollCount": 3,
      "RoomCount": 4,
      "BldgArea": 5.1,
      "Pics": "sample string 6",
      "BuildingName": "sample string 7",
      "Floor": 8,
      "FloorCount": 9,
      "RefPrice": 10.1,
      "TypeName": "sample string 11"
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<TradeRecommendResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Trade">
  <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>
  <Trades>
    <TradeRecommendResult.TradeRecommend>
      <BldgArea>5.1</BldgArea>
      <BuildingID>2</BuildingID>
      <BuildingName>sample string 7</BuildingName>
      <Floor>8</Floor>
      <FloorCount>9</FloorCount>
      <HollCount>3</HollCount>
      <Id>1</Id>
      <Pics>sample string 6</Pics>
      <RefPrice>10.1</RefPrice>
      <RoomCount>4</RoomCount>
      <TypeName>sample string 11</TypeName>
    </TradeRecommendResult.TradeRecommend>
    <TradeRecommendResult.TradeRecommend>
      <BldgArea>5.1</BldgArea>
      <BuildingID>2</BuildingID>
      <BuildingName>sample string 7</BuildingName>
      <Floor>8</Floor>
      <FloorCount>9</FloorCount>
      <HollCount>3</HollCount>
      <Id>1</Id>
      <Pics>sample string 6</Pics>
      <RefPrice>10.1</RefPrice>
      <RoomCount>4</RoomCount>
      <TypeName>sample string 11</TypeName>
    </TradeRecommendResult.TradeRecommend>
  </Trades>
</TradeRecommendResult>