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

alibaba.campus.space.type.getbynamelike (小类的模糊搜索,获取小类的CODE和全称)

小类的模糊搜索,获取小类的CODE和全称 HSF接口名称:com.alibaba.campus.space.api.top.SpaceTypeApiTopService HSF方法名称:getWrapsByNameLike

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 WorkBenchContext 必须 环境参数
  • └ campus_code
  • String
  • 可选
  • 100001
  • 园区编码
  • └ company_id
  • Number
  • 可选
  • 100001
  • 公司id
  • └ campus_id
  • Number
  • 可选
  • 100001
  • 园区id
type_name String 可选 停车 类型名称

响应参数

名称 类型 示例值 描述
result ListResult {} result
  • contents
  • PoiTypeWrap []
  • []
  • content
  • └ classify
  • String
  • ""
  • classify
  • └ is_delete
  • Boolean
  • false
  • 是否删除
  • └ description
  • String
  • ""
  • 描述
  • └ full_name
  • String
  • ""
  • 全名:大类名称-小类名称
  • └ name
  • String
  • ""
  • 小类名称
  • └ second_type_name
  • String
  • ""
  • 大类名称
  • └ code
  • String
  • ""
  • 小类编码
  • └ second_type_code
  • String
  • ""
  • 大类编码
  • └ second_type_id
  • Number
  • 1
  • 大类id
  • └ gmt_create
  • Date
  • 2018-07-02
  • 创建时间
  • └ gmt_modified
  • Date
  • 2018-07-02
  • 修改时间
  • └ id
  • Number
  • 1
  • id
  • └ request_id
  • String
  • ""
  • requestId
  • └ total_count
  • Number
  • 20
  • totalCount
  • └ 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);
AlibabaCampusSpaceTypeGetbynamelikeRequest req = new AlibabaCampusSpaceTypeGetbynamelikeRequest();
AlibabaCampusSpaceTypeGetbynamelikeRequest.WorkBenchContext obj1 = new AlibabaCampusSpaceTypeGetbynamelikeRequest.WorkBenchContext();
obj1.setCampusCode("100001");
obj1.setCompanyId(100001L);
obj1.setCampusId(100001L);
req.setParam0(obj1);
req.setTypeName("停车");
AlibabaCampusSpaceTypeGetbynamelikeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_space_type_getbynamelike_response>
    <result>
        <contents>
            <poi_type_wrap>
                <classify>&quot;&quot;</classify>
                <is_delete>false</is_delete>
                <description>&quot;&quot;</description>
                <full_name>&quot;&quot;</full_name>
                <name>&quot;&quot;</name>
                <second_type_name>&quot;&quot;</second_type_name>
                <code>&quot;&quot;</code>
                <second_type_code>&quot;&quot;</second_type_code>
                <second_type_id>1</second_type_id>
                <gmt_create>2018-07-02</gmt_create>
                <gmt_modified>2018-07-02</gmt_modified>
                <id>1</id>
            </poi_type_wrap>
        </contents>
        <request_id>&quot;&quot;</request_id>
        <total_count>20</total_count>
        <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_getbynamelike_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

返回
顶部