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

alibaba.campus.space.group.getspacegroupwithattr (空间分组id查业务属性实例)

空间分组id查业务属性实例

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
context WorkBenchContext 可选 操作用户上下文
  • └ user_id
  • Number
  • 可选
  • 123456
  • 用户id
  • └ campus_code
  • String
  • 可选
  • 168
  • 园区编码
  • └ company_id
  • Number
  • 可选
  • 10000
  • 公司id
  • └ campus_id
  • Number
  • 必须
  • 100001
  • 园区id
group_id Number 必须 84 空间单元id

响应参数

名称 类型 示例值 描述
result PojoResult {} result
  • content
  • SpaceGroup
  • ""
  • content
  • └ uuid
  • String
  • ""
  • uuid
  • └ is_delete
  • Boolean
  • false
  • isDelete
  • └ code
  • String
  • ""
  • code
  • └ description
  • String
  • ""
  • description
  • └ floor_id
  • Number
  • 1
  • floorId
  • └ floor_name
  • String
  • ""
  • floorName
  • └ campus_id
  • Number
  • 1
  • campusId
  • └ type_id
  • Number
  • 1
  • typeId
  • └ campus_name
  • String
  • ""
  • campusName
  • └ type_name
  • String
  • ""
  • typeName
  • └ id
  • Number
  • 1
  • id
  • └ type_code
  • String
  • ""
  • typeCode
  • └ name
  • String
  • ""
  • name
  • └ building_id
  • Number
  • 1
  • buildingId
  • └ building_name
  • String
  • ""
  • buildingName
  • attrs
  • TypeAttrInstance []
  • {}
  • attrs
  • └ type_attr_ref_id
  • Number
  • 1
  • typeAttrRefId
  • └ attr_name
  • String
  • ""
  • attrName
  • └ attr_code
  • String
  • ""
  • attrCode
  • └ value
  • String
  • ""
  • value
  • └ value_type
  • String
  • ""
  • valueType
  • └ uuid
  • String
  • ""
  • uuid
  • └ request_id
  • String
  • 1
  • requestId
  • └ 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);
AlibabaCampusSpaceGroupGetspacegroupwithattrRequest req = new AlibabaCampusSpaceGroupGetspacegroupwithattrRequest();
AlibabaCampusSpaceGroupGetspacegroupwithattrRequest.WorkBenchContext obj1 = new AlibabaCampusSpaceGroupGetspacegroupwithattrRequest.WorkBenchContext();
obj1.setUserId(123456L);
obj1.setCampusCode("168");
obj1.setCompanyId(10000L);
obj1.setCampusId(100001L);
req.setContext(obj1);
req.setGroupId(84L);
AlibabaCampusSpaceGroupGetspacegroupwithattrResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_space_group_getspacegroupwithattr_response>
    <result>
        <content>
            <uuid>&quot;&quot;</uuid>
            <is_delete>false</is_delete>
            <code>&quot;&quot;</code>
            <description>&quot;&quot;</description>
            <floor_id>1</floor_id>
            <floor_name>&quot;&quot;</floor_name>
            <campus_id>1</campus_id>
            <type_id>1</type_id>
            <campus_name>&quot;&quot;</campus_name>
            <type_name>&quot;&quot;</type_name>
            <id>1</id>
            <type_code>&quot;&quot;</type_code>
            <name>&quot;&quot;</name>
            <building_id>1</building_id>
            <building_name>&quot;&quot;</building_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>
                    <value_type>&quot;&quot;</value_type>
                    <uuid>&quot;&quot;</uuid>
                </type_attr_instance>
            </attrs>
        </content>
        <request_id>1</request_id>
        <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_group_getspacegroupwithattr_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

返回
顶部