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

alibaba.ib.workcore.company.getcompanysbyid (根据ids获取公司详情列表)

根据ids获取公司详情列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ids String 必须 1,2,3 公司id集合,多个参数以逗号隔开,必须是英文逗号
work_bench_context WorkBenchContext 可选 查询参数
  • └ campus_id
  • Number
  • 可选
  • 1
  • 园区id
  • └ system_id
  • String
  • 可选
  • 1
  • 系统id

响应参数

名称 类型 示例值 描述
result CollectionResult {} CollectionResult
  • └ error_level
  • String
  • 1
  • 错误等级
  • └ error_ext_info
  • String
  • {"errormsg":"ok"}
  • 错误详情
  • └ success
  • Boolean
  • false
  • 是否请求成功
  • └ error_msg
  • String
  • ok
  • 错误信息
  • └ error_code
  • String
  • 200
  • 错误码
  • └ total_count
  • Number
  • 10
  • 返回总数据量
  • └ request_id
  • String
  • 1
  • 请求id
  • contents
  • CompanyDto []
  • []
  • 响应具体内容
  • └ id
  • Number
  • 1
  • 公司ID
  • └ company_id
  • Number
  • 1
  • 公司ID
  • └ name
  • String
  • 阿里巴巴集团
  • 公司全名
  • └ short_name
  • String
  • 阿里巴巴
  • 公司简称
  • └ is_default
  • String
  • true
  • 是否默认公司
  • └ status
  • String
  • 1
  • 公司状态
  • └ mobile
  • String
  • 12132443
  • 公司联系电话
  • └ campus_id
  • Number
  • 1
  • 园区ID
  • └ campus_name
  • String
  • 西溪园区
  • 公司所在园区名字
  • └ hr_sign_company_id
  • Number
  • 1
  • 签约主体公司ID
  • └ is_wuye
  • Boolean
  • true
  • 是否物业公司
  • └ count
  • Number
  • 121
  • 公司人数
  • └ company_code
  • String
  • 121
  • 公司编号

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_ib_workcore_company_getcompanysbyid_response>
    <result>
        <error_level>1</error_level>
        <error_ext_info>{&quot;errormsg&quot;:&quot;ok&quot;}</error_ext_info>
        <success>false</success>
        <error_msg>ok</error_msg>
        <error_code>200</error_code>
        <total_count>10</total_count>
        <request_id>1</request_id>
        <contents>
            <company_dto>
                <id>1</id>
                <company_id>1</company_id>
                <name>阿里巴巴集团</name>
                <short_name>阿里巴巴</short_name>
                <is_default>true</is_default>
                <status>1</status>
                <mobile>12132443</mobile>
                <campus_id>1</campus_id>
                <campus_name>西溪园区</campus_name>
                <hr_sign_company_id>1</hr_sign_company_id>
                <is_wuye>true</is_wuye>
                <count>121</count>
                <company_code>121</company_code>
            </company_dto>
        </contents>
    </result>
</alibaba_ib_workcore_company_getcompanysbyid_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

返回
顶部