POST api/collector/posttrade

收藏二手房

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

Request 信息

URI 参数

None.

Body 参数

参数

TradeCollectorModel
名称说明数据类型附加信息
TradeInfo

二手房接收数据

TradeCollector

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "TradeInfo": {
    "IsTaxless": true,
    "IsSchoolHouse": true,
    "IsUrgentSale": true,
    "IsHot": true,
    "Id": 5,
    "HouseCommend": "sample string 6",
    "BuildingId": 7,
    "BuildingName": "sample string 8",
    "Pics": "sample string 9",
    "BoardId": 10,
    "BoardName": "sample string 11",
    "RoomCount": 12,
    "HollCount": 13,
    "Floor": 14,
    "FloorCount": 15,
    "BldgArea": 16.0,
    "RefPrice": 17.0,
    "PriceUnit": "sample string 18"
  },
  "City": "sample string 1",
  "Token": "sample string 2",
  "Platform": "sample string 3"
}

application/xml, text/xml

示例:
<TradeCollectorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Collector">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 2</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 1</City>
  <TradeInfo>
    <BldgArea>16</BldgArea>
    <BoardId>10</BoardId>
    <BoardName>sample string 11</BoardName>
    <BuildingId>7</BuildingId>
    <BuildingName>sample string 8</BuildingName>
    <Floor>14</Floor>
    <FloorCount>15</FloorCount>
    <HollCount>13</HollCount>
    <HouseCommend>sample string 6</HouseCommend>
    <Id>5</Id>
    <Pics>sample string 9</Pics>
    <PriceUnit>sample string 18</PriceUnit>
    <RefPrice>17</RefPrice>
    <RoomCount>12</RoomCount>
    <IsHot>true</IsHot>
    <IsSchoolHouse>true</IsSchoolHouse>
    <IsTaxless>true</IsTaxless>
    <IsUrgentSale>true</IsUrgentSale>
  </TradeInfo>
</TradeCollectorModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

AddCollectorResult
名称说明数据类型附加信息
NewId

添加后的id

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

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

application/xml, text/xml

示例:
<AddCollectorResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Collector">
  <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 2</Msg>
  <NewId>1</NewId>
</AddCollectorResult>