POST api/collector/iscollector

是否收藏过

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

Request 信息

URI 参数

None.

Body 参数

参数

IsCollectorModel
名称说明数据类型附加信息
InfoId

如房源Id、经纪人id或小区Id

integer

Required

Type

类别

CollectorType

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "InfoId": 1,
  "Type": 1,
  "City": "sample string 2",
  "Token": "sample string 3",
  "Platform": "sample string 4"
}

application/xml, text/xml

示例:
<IsCollectorModel 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 4</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 2</City>
  <InfoId>1</InfoId>
  <Type>Trade</Type>
</IsCollectorModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

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

收藏id(登录过才会检测是否收藏),如果收藏CollectId>0,未收藏CollectId=0

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

示例:
<IsCollectorResult 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>
</IsCollectorResult>