POST api/collector/postnew

收藏新房

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

Request 信息

URI 参数

None.

Body 参数

参数

NewCollectorModel
名称说明数据类型附加信息
NewInfo

新房接收数据

NewCollector

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "NewInfo": {
    "Deck": "sample string 1",
    "NewHouseType": "sample string 2",
    "Id": 3,
    "HouseCommend": "sample string 4",
    "BuildingId": 5,
    "BuildingName": "sample string 6",
    "Pics": "sample string 7",
    "BoardId": 8,
    "BoardName": "sample string 9",
    "RoomCount": 10,
    "HollCount": 11,
    "Floor": 12,
    "FloorCount": 13,
    "BldgArea": 14.0,
    "RefPrice": 15.0,
    "PriceUnit": "sample string 16"
  },
  "City": "sample string 1",
  "Token": "sample string 2",
  "Platform": "sample string 3"
}

application/xml, text/xml

示例:
<NewCollectorModel 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>
  <NewInfo>
    <BldgArea>14</BldgArea>
    <BoardId>8</BoardId>
    <BoardName>sample string 9</BoardName>
    <BuildingId>5</BuildingId>
    <BuildingName>sample string 6</BuildingName>
    <Floor>12</Floor>
    <FloorCount>13</FloorCount>
    <HollCount>11</HollCount>
    <HouseCommend>sample string 4</HouseCommend>
    <Id>3</Id>
    <Pics>sample string 7</Pics>
    <PriceUnit>sample string 16</PriceUnit>
    <RefPrice>15</RefPrice>
    <RoomCount>10</RoomCount>
    <Deck>sample string 1</Deck>
    <NewHouseType>sample string 2</NewHouseType>
  </NewInfo>
</NewCollectorModel>

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>