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

alibaba.ib.workcore.employee.getempcompany (查询员工加入公司列表)

根据AccountId查询员工加入公司列表

公共参数

请求参数

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

响应参数

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

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_ib_workcore_employee_getempcompany_response>
    <result>
        <error_ext_info>{&quot;errormsg&quot;:&quot;请求失败&quot;}</error_ext_info>
        <error_level>1</error_level>
        <success>false</success>
        <error_msg>ok</error_msg>
        <error_code>200</error_code>
        <request_id>1</request_id>
        <total_count>10</total_count>
        <contents>
            <content>
                <id>1</id>
                <company_id>1</company_id>
                <name>阿里巴巴集团</name>
                <short_name>阿里巴巴</short_name>
                <is_default>false</is_default>
                <status>1</status>
                <mobile>11213444</mobile>
                <campus_id>1</campus_id>
                <campus_name>1</campus_name>
                <hr_sign_company_id>1</hr_sign_company_id>
                <is_wuye>true</is_wuye>
                <count>100</count>
                <company_code>1</company_code>
            </content>
        </contents>
    </result>
</alibaba_ib_workcore_employee_getempcompany_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

返回
顶部