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

alibaba.campus.space.unit.getlistwithattrbygroupid (根据空间分组id、ids查空间单元信息【带空间单元业务属性信息】)

根据空间分组id、ids查空间单元信息【带空间单元业务属性信息】

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
context WorkBenchContext 可选 操作用户上下文
  • └ user_id
  • Number
  • 可选
  • 123456
  • 用户ID
  • └ campus_code
  • String
  • 可选
  • 1273
  • 园区编码
  • └ company_id
  • Number
  • 可选
  • 1
  • 公司id
  • └ campus_id
  • Number
  • 必须
  • 100005
  • 园区id
group_id Number 必须 168 分组id

响应参数

名称 类型 示例值 描述
result ListResult {} result
  • contents
  • PoiInfo []
  • ""
  • content
  • └ building_name
  • String
  • ""
  • buildingName
  • └ uuid
  • String
  • ""
  • uuid
  • └ company_id
  • Number
  • 1
  • companyId
  • └ status
  • Number
  • 1
  • status
  • └ building_id
  • Number
  • 1
  • buildingId
  • └ is_delete
  • Boolean
  • false
  • isDelete
  • └ code
  • String
  • ""
  • code
  • └ campus_id
  • Number
  • 1
  • campusId
  • └ type_id
  • Number
  • 1
  • typeId
  • └ type_code
  • String
  • ""
  • typeCode
  • └ id
  • Number
  • 1
  • id
  • └ category
  • Number
  • 1
  • category
  • └ floor_name
  • String
  • ""
  • floorName
  • └ height
  • BigDecimal
  • 1.0
  • height
  • └ area
  • BigDecimal
  • 1.0
  • area
  • └ floor_id
  • Number
  • 1
  • floorId
  • └ type_name
  • String
  • ""
  • typeName
  • └ campus_code
  • String
  • ""
  • campusCode
  • └ campus_name
  • String
  • ""
  • campusName
  • └ name
  • String
  • ""
  • name
  • attrs
  • TypeAttrInstance []
  • {}
  • attrs
  • └ type_attr_ref_id
  • Number
  • 1
  • typeAttrRefId
  • └ attr_name
  • String
  • ""
  • attrName
  • └ attr_code
  • String
  • ""
  • attrCode
  • └ value
  • String
  • ""
  • value
  • └ uuid
  • String
  • ""
  • uuid
  • └ value_type
  • String
  • ""
  • valueType
  • └ ft_id
  • String
  • 111
  • 地图图元id
  • └ geo_floor_id
  • Number
  • 123
  • 地图楼层id
  • └ request_id
  • String
  • ""
  • requestId
  • └ total_count
  • Number
  • 20
  • totalCount
  • └ error_code
  • String
  • ""
  • errorCode
  • └ error_msg
  • String
  • ""
  • errorMsg
  • └ success
  • Boolean
  • false
  • success
  • └ error_level
  • String
  • ""
  • errorLevel

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusSpaceUnitGetlistwithattrbygroupidRequest req = new AlibabaCampusSpaceUnitGetlistwithattrbygroupidRequest();
AlibabaCampusSpaceUnitGetlistwithattrbygroupidRequest.WorkBenchContext obj1 = new AlibabaCampusSpaceUnitGetlistwithattrbygroupidRequest.WorkBenchContext();
obj1.setUserId(123456L);
obj1.setCampusCode("1273");
obj1.setCompanyId(1L);
obj1.setCampusId(100005L);
req.setContext(obj1);
req.setGroupId(168L);
AlibabaCampusSpaceUnitGetlistwithattrbygroupidResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_space_unit_getlistwithattrbygroupid_response>
    <result>
        <contents>
            <poi_info>
                <building_name>&quot;&quot;</building_name>
                <uuid>&quot;&quot;</uuid>
                <company_id>1</company_id>
                <status>1</status>
                <building_id>1</building_id>
                <is_delete>false</is_delete>
                <code>&quot;&quot;</code>
                <campus_id>1</campus_id>
                <type_id>1</type_id>
                <type_code>&quot;&quot;</type_code>
                <id>1</id>
                <category>1</category>
                <floor_name>&quot;&quot;</floor_name>
                <height>1.0</height>
                <area>1.0</area>
                <floor_id>1</floor_id>
                <type_name>&quot;&quot;</type_name>
                <campus_code>&quot;&quot;</campus_code>
                <campus_name>&quot;&quot;</campus_name>
                <name>&quot;&quot;</name>
                <attrs>
                    <type_attr_instance>
                        <type_attr_ref_id>1</type_attr_ref_id>
                        <attr_name>&quot;&quot;</attr_name>
                        <attr_code>&quot;&quot;</attr_code>
                        <value>&quot;&quot;</value>
                        <uuid>&quot;&quot;</uuid>
                        <value_type>&quot;&quot;</value_type>
                    </type_attr_instance>
                </attrs>
                <ft_id>111</ft_id>
                <geo_floor_id>123</geo_floor_id>
            </poi_info>
        </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>false</success>
        <error_level>&quot;&quot;</error_level>
    </result>
</alibaba_campus_space_unit_getlistwithattrbygroupid_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

返回
顶部