POST api/collector/postlease

收藏出租房

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

Request 信息

URI 参数

None.

Body 参数

参数

LeaseCollectorModel
名称说明数据类型附加信息
LeaseInfo

出租房接收数据

LeaseCollector

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "LeaseInfo": {
    "Floor": 1,
    "FloorCount": 2,
    "Direct": "sample string 3",
    "IsUrgentRent": true,
    "IsSchoolHouse": true,
    "IsHot": true,
    "RentWay": "sample string 7",
    "Id": 8,
    "HouseCommend": "sample string 9",
    "BuildingId": 10,
    "BuildingName": "sample string 11",
    "Pics": "sample string 12",
    "BoardId": 13,
    "BoardName": "sample string 14",
    "RoomCount": 15,
    "HollCount": 16,
    "BldgArea": 17.0,
    "RefPrice": 18.0,
    "PriceUnit": "sample string 19"
  },
  "City": "sample string 1",
  "Token": "sample string 2",
  "Platform": "sample string 3"
}

application/xml, text/xml

示例:
<LeaseCollectorModel 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>
  <LeaseInfo>
    <BldgArea>17</BldgArea>
    <BoardId>13</BoardId>
    <BoardName>sample string 14</BoardName>
    <BuildingId>10</BuildingId>
    <BuildingName>sample string 11</BuildingName>
    <Floor>1</Floor>
    <FloorCount>2</FloorCount>
    <HollCount>16</HollCount>
    <HouseCommend>sample string 9</HouseCommend>
    <Id>8</Id>
    <Pics>sample string 12</Pics>
    <PriceUnit>sample string 19</PriceUnit>
    <RefPrice>18</RefPrice>
    <RoomCount>15</RoomCount>
    <Direct>sample string 3</Direct>
    <IsHot>true</IsHot>
    <IsSchoolHouse>true</IsSchoolHouse>
    <IsUrgentRent>true</IsUrgentRent>
    <RentWay>sample string 7</RentWay>
  </LeaseInfo>
</LeaseCollectorModel>

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>