文档中心 > API类目 > 神鲸应用API

alibaba.ib.workcore.app.getappcompanys (获取公司应用列表)

获取公司应用列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
work_bench_context WorkBenchContext 可选 系统自动生成
  • └ campus_id
  • Number
  • 可选
  • 111
  • 园区id
  • └ system_id
  • String
  • 可选
  • 11
  • 系统id
  • └ company_id
  • Number
  • 必须
  • 11
  • 公司id
  • └ user_id
  • Number
  • 必须
  • 11
  • buc账户id

响应参数

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

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_ib_workcore_app_getappcompanys_response>
    <result>
        <error_level>1</error_level>
        <success>false</success>
        <error_msg>1</error_msg>
        <error_code>1</error_code>
        <total_count>123</total_count>
        <request_id>1</request_id>
        <contents>
            <t>
                <notify_url>xx.xx.com/xxx</notify_url>
                <device>all</device>
                <app_key>123123</app_key>
                <top_app_key>121313</top_app_key>
                <id>1</id>
                <name>xxx</name>
                <icon>xx.com/xx.jpg</icon>
                <url>xxx.xx.com/xx</url>
                <admin_url>xxx.xx.com/xx</admin_url>
                <category>1</category>
                <type>1</type>
                <company>xxx公司</company>
                <status>1</status>
                <description>xxx</description>
                <open_mode>h5</open_mode>
                <offline_pkg>1</offline_pkg>
                <is_charge>false</is_charge>
                <is_hide>false</is_hide>
                <is_gray>false</is_gray>
                <app_order>1</app_order>
            </t>
        </contents>
    </result>
</alibaba_ib_workcore_app_getappcompanys_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

返回
顶部