POST api/broker/getbroker

根据Id获取经纪人

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

Request 信息

URI 参数

None.

Body 参数

参数

BrokerModel
名称说明数据类型附加信息
Id

经纪人Id

integer

Required

HasDescription

是否返回公告和个人介绍

boolean

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Id": 1,
  "HasDescription": true,
  "City": "sample string 3",
  "Token": "sample string 4",
  "Platform": "sample string 5"
}

application/xml, text/xml

示例:
<BrokerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Broker">
  <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>
  <HasDescription>true</HasDescription>
  <Id>1</Id>
</BrokerModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

BrokerResult
名称说明数据类型附加信息
broker

经纪人

DetailBroker

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "broker": {
    "Tel": "sample string 1",
    "IsOnline": true,
    "ReplyRate": 3.0,
    "Level": 4,
    "CompanyName": "sample string 5",
    "StoreName": "sample string 6",
    "WorkTime": "2020-04-04T06:43:53.2901455+08:00",
    "Bulletin": "sample string 7",
    "Intr": "sample string 8",
    "BrokerType": 9,
    "ServiceBoards": [
      {
        "BoardId": 1,
        "RegionCode": "sample string 2",
        "Name": "sample string 3"
      },
      {
        "BoardId": 1,
        "RegionCode": "sample string 2",
        "Name": "sample string 3"
      }
    ],
    "ServiceBuildings": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ],
    "IsBusiCard": true,
    "IsCardCert": true,
    "IsPhotoCert": true,
    "IsWorkCert": true,
    "IsExpert": true,
    "LeaseCount": 15,
    "TradeCount": 16,
    "Id": 17,
    "Name": "sample string 18",
    "Photo": "sample string 19"
  },
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<BrokerResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Broker">
  <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>
  <broker>
    <Id>17</Id>
    <Name>sample string 18</Name>
    <Photo>sample string 19</Photo>
    <BrokerType>9</BrokerType>
    <Bulletin>sample string 7</Bulletin>
    <Intr>sample string 8</Intr>
    <LeaseCount>15</LeaseCount>
    <TradeCount>16</TradeCount>
    <WorkTime>2020-04-04T06:43:53.2901455+08:00</WorkTime>
  </broker>
</BrokerResult>