POST api/collector/postbroker

收藏经纪人(同时可关注经纪人)

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

Request 信息

URI 参数

None.

Body 参数

参数

BrokerCollectorModel
名称说明数据类型附加信息
BrokerInfo

经纪人信息

BrokerCollector

None.

IsAttention

收藏是否同时关注经纪人

boolean

None.

Cid

您的设备id, 如果需要关注经纪人,且未登录,cid需要填写

string

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "BrokerInfo": {
    "Id": 1,
    "Name": "sample string 2",
    "Photo": "sample string 3",
    "Level": 4,
    "Phone": "sample string 5",
    "CompanyName": "sample string 6",
    "ServiceBoards": [
      "sample string 1",
      "sample string 2"
    ],
    "ServiceBuildings": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "IsAttention": true,
  "Cid": "sample string 2",
  "City": "sample string 3",
  "Token": "sample string 4",
  "Platform": "sample string 5"
}

application/xml, text/xml

示例:
<BrokerCollectorModel 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 5</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 4</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</City>
  <BrokerInfo>
    <CompanyName>sample string 6</CompanyName>
    <Id>1</Id>
    <Level>4</Level>
    <Name>sample string 2</Name>
    <Phone>sample string 5</Phone>
    <Photo>sample string 3</Photo>
    <ServiceBoards xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </ServiceBoards>
    <ServiceBuildings xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </ServiceBuildings>
  </BrokerInfo>
  <Cid>sample string 2</Cid>
  <IsAttention>true</IsAttention>
</BrokerCollectorModel>

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>