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

alibaba.campus.core.company.getcompanyinfobyids (根据ids获取公司详情列表)

根据ids获取公司详情

公共参数

请求参数

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

响应参数

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

请求示例

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

响应示例

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

返回
顶部