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

alibaba.campus.core.app.getappsbycompany (获取公司应用列表)

获取公司应用列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
work_bench_context WorkBenchContext 可选 平台统一权限校验
  • └ user_id
  • Number
  • 必须
  • 1
  • buc账户id
  • └ company_id
  • Number
  • 必须
  • 1
  • 公司id
  • └ system_id
  • String
  • 可选
  • 1
  • 系统id
  • └ campus_id
  • Number
  • 可选
  • 1
  • 园区id

响应参数

名称 类型 示例值 描述
result CollectionResult {} 请求响应
  • contents
  • T []
  • []
  • 响应具体内容
  • └ app_order
  • Number
  • 1
  • 应用排序
  • └ is_gray
  • String
  • false
  • 是否灰度
  • └ is_hide
  • Boolean
  • false
  • 是否隐藏
  • └ is_charge
  • Boolean
  • false
  • 是否收费应用
  • └ offline_pkg
  • String
  • 1
  • 离线包
  • └ open_mode
  • String
  • h5
  • 打开模式 1,native 2,h5
  • └ description
  • String
  • xxxx
  • 应用描述
  • └ status
  • Number
  • 1
  • 应用状态 1,启用 0,禁用
  • └ company
  • String
  • xxx公司
  • 应用开发商
  • └ type
  • Number
  • 1
  • 应用类型 1,基础 2,员工
  • └ category
  • Number
  • 1
  • 应用分类 1,效率 2,生活
  • └ admin_url
  • String
  • xxx.xx.com/xx
  • 应用管理员后台url
  • └ url
  • String
  • xxx.xx.com/xx
  • 应用前台访问url
  • └ icon
  • String
  • xx.com/xx.jpg
  • 应用图标
  • └ name
  • String
  • xxx
  • 应用名称
  • └ id
  • Number
  • 1
  • 应用id
  • └ top_app_key
  • String
  • 4272
  • top的AppKey
  • └ app_key
  • String
  • 123123
  • 平台的appKey
  • └ device
  • String
  • all
  • 设备类型 all,Android,iOS
  • └ notify_url
  • String
  • xx.xx.com/xxx
  • 消息回调url
  • └ request_id
  • String
  • 1
  • 请求id
  • └ total_count
  • Number
  • 123
  • 返回数据条数
  • └ error_code
  • String
  • 200
  • 错误码
  • └ error_msg
  • String
  • ok
  • 错误信息
  • └ success
  • Boolean
  • false
  • 是否请求成功
  • └ error_ext_info
  • String
  • {"errormsg":"ok"}
  • 错误详情
  • └ error_level
  • String
  • 1
  • errorLevel

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusCoreAppGetappsbycompanyRequest req = new AlibabaCampusCoreAppGetappsbycompanyRequest();
AlibabaCampusCoreAppGetappsbycompanyRequest.WorkBenchContext obj1 = new AlibabaCampusCoreAppGetappsbycompanyRequest.WorkBenchContext();
obj1.setUserId(1L);
obj1.setCompanyId(1L);
obj1.setSystemId("1");
obj1.setCampusId(1L);
req.setWorkBenchContext(obj1);
AlibabaCampusCoreAppGetappsbycompanyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_core_app_getappsbycompany_response>
    <result>
        <contents>
            <t>
                <app_order>1</app_order>
                <is_gray>false</is_gray>
                <is_hide>false</is_hide>
                <is_charge>false</is_charge>
                <offline_pkg>1</offline_pkg>
                <open_mode>h5</open_mode>
                <description>xxxx</description>
                <status>1</status>
                <company>xxx公司</company>
                <type>1</type>
                <category>1</category>
                <admin_url>xxx.xx.com/xx</admin_url>
                <url>xxx.xx.com/xx</url>
                <icon>xx.com/xx.jpg</icon>
                <name>xxx</name>
                <id>1</id>
                <top_app_key>4272</top_app_key>
                <app_key>123123</app_key>
                <device>all</device>
                <notify_url>xx.xx.com/xxx</notify_url>
            </t>
        </contents>
        <request_id>1</request_id>
        <total_count>123</total_count>
        <error_code>200</error_code>
        <error_msg>ok</error_msg>
        <success>false</success>
        <error_ext_info>{&quot;errormsg&quot;:&quot;ok&quot;}</error_ext_info>
        <error_level>1</error_level>
    </result>
</alibaba_campus_core_app_getappsbycompany_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

返回
顶部