POST api/lease/postsubscriberefresh

预约刷新房源

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

Request 信息

URI 参数

None.

Body 参数

参数

SubscribeRefreshModel
名称说明数据类型附加信息
HouIds

预约的房源

Collection of integer

Required

Times

预约的时间

Collection of date

Required

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "HouIds": [
    1,
    2
  ],
  "Times": [
    "2020-04-06T23:41:57.1193841+08:00",
    "2020-04-06T23:41:57.1193841+08:00"
  ],
  "City": "sample string 1",
  "Token": "sample string 2",
  "Platform": "sample string 3"
}

application/xml, text/xml

示例:
<SubscribeRefreshModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">
  <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>
  <HouIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </HouIds>
  <Times xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:dateTime>2020-04-06T23:41:57.1193841+08:00</d2p1:dateTime>
    <d2p1:dateTime>2020-04-06T23:41:57.1193841+08:00</d2p1:dateTime>
  </Times>
</SubscribeRefreshModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

SubscribeRefreshResult
名称说明数据类型附加信息
TimeFailds

失败的预约时间

Collection of TimeFaild

None.

HouseSuccesses

失败的房源

Collection of HouseSuccess

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "TimeFailds": [
    {
      "Time": "2020-04-06T23:41:57.1350066+08:00",
      "FaildMsg": "sample string 2"
    },
    {
      "Time": "2020-04-06T23:41:57.1350066+08:00",
      "FaildMsg": "sample string 2"
    }
  ],
  "HouseSuccesses": [
    {
      "HouId": 1
    },
    {
      "HouId": 1
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<SubscribeRefreshResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">
  <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>
  <HouseSuccesses>
    <SubscribeRefreshResult.HouseSuccess>
      <HouId>1</HouId>
    </SubscribeRefreshResult.HouseSuccess>
    <SubscribeRefreshResult.HouseSuccess>
      <HouId>1</HouId>
    </SubscribeRefreshResult.HouseSuccess>
  </HouseSuccesses>
  <TimeFailds>
    <SubscribeRefreshResult.TimeFaild>
      <FaildMsg>sample string 2</FaildMsg>
      <Time>2020-04-06T23:41:57.1350066+08:00</Time>
    </SubscribeRefreshResult.TimeFaild>
    <SubscribeRefreshResult.TimeFaild>
      <FaildMsg>sample string 2</FaildMsg>
      <Time>2020-04-06T23:41:57.1350066+08:00</Time>
    </SubscribeRefreshResult.TimeFaild>
  </TimeFailds>
</SubscribeRefreshResult>