文档中心 > API类目 > 智慧园区API

alibaba.campus.space.type.getbycode (根据类别编码查询类别)

根据类别编码查询类别 HSF接口名称:com.alibaba.campus.space.api.top.SpaceTypeApiTopService HSF方法名称:getByCode

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 WorkBenchContext 可选 查询条件封装
  • └ campus_code
  • String
  • 可选
  • ""
  • 园区编码
  • └ company_id
  • Number
  • 可选
  • 10000
  • 公司ID
  • └ campus_id
  • Number
  • 必须
  • 100001
  • 园区id
type_code String 可选 "002401" 空间类别编码

响应参数

名称 类型 示例值 描述
result PojoResult {} result
  • content
  • PoiType
  • {}
  • 内容
  • └ type_name
  • String
  • ""
  • 类别名称
  • └ type_code
  • String
  • ""
  • 类别编码
  • └ big_type_code
  • String
  • ""
  • 大类编码
  • └ big_type_name
  • String
  • ""
  • 大类名称
  • └ big_type_id
  • Number
  • 1
  • 大类ID
  • └ pid
  • Number
  • 1
  • 父类id
  • └ classify
  • String
  • ""
  • 类别的实际名称,空间或分组
  • └ code
  • String
  • ""
  • 编码
  • └ name
  • String
  • ""
  • 名称
  • └ category
  • Number
  • 1
  • POI类型分类
  • └ is_delete
  • Boolean
  • false
  • 是否删除
  • └ description
  • String
  • ""
  • 描述
  • └ type_en_name
  • String
  • ""
  • 英文名称
  • └ request_id
  • String
  • ""
  • requestId
  • └ error_code
  • String
  • ""
  • errorCode
  • └ error_msg
  • String
  • ""
  • errorMsg
  • └ success
  • Boolean
  • true
  • success
  • └ error_level
  • String
  • ""
  • errorLevel

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusSpaceTypeGetbycodeRequest req = new AlibabaCampusSpaceTypeGetbycodeRequest();
AlibabaCampusSpaceTypeGetbycodeRequest.WorkBenchContext obj1 = new AlibabaCampusSpaceTypeGetbycodeRequest.WorkBenchContext();
obj1.setCampusCode("\"\"");
obj1.setCompanyId(10000L);
obj1.setCampusId(100001L);
req.setParam0(obj1);
req.setTypeCode("\"002401\"");
AlibabaCampusSpaceTypeGetbycodeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_space_type_getbycode_response>
    <result>
        <content>
            <type_name>&quot;&quot;</type_name>
            <type_code>&quot;&quot;</type_code>
            <big_type_code>&quot;&quot;</big_type_code>
            <big_type_name>&quot;&quot;</big_type_name>
            <big_type_id>1</big_type_id>
            <pid>1</pid>
            <classify>&quot;&quot;</classify>
            <code>&quot;&quot;</code>
            <name>&quot;&quot;</name>
            <category>1</category>
            <is_delete>false</is_delete>
            <description>&quot;&quot;</description>
            <type_en_name>&quot;&quot;</type_en_name>
        </content>
        <request_id>&quot;&quot;</request_id>
        <error_code>&quot;&quot;</error_code>
        <error_msg>&quot;&quot;</error_msg>
        <success>true</success>
        <error_level>&quot;&quot;</error_level>
    </result>
</alibaba_campus_space_type_getbycode_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部