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

alibaba.ib.workcore.person.getaccountid (根据passportaccountId获取accountId)

根据passportaccountId获取accountId

公共参数

请求参数

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

响应参数

名称 类型 示例值 描述
result PojoResult {} 响应结果
  • └ error_level
  • String
  • 1
  • 错误等级
  • └ success
  • Boolean
  • true
  • 是否请求成功
  • └ error_msg
  • String
  • ok
  • 错误信息
  • └ error_code
  • String
  • 200
  • 错误码
  • └ request_id
  • String
  • 1
  • 请求id
  • └ content
  • Number
  • 1
  • 转换过后得到的accountId

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_ib_workcore_person_getaccountid_response>
    <result>
        <error_level>1</error_level>
        <success>true</success>
        <error_msg>ok</error_msg>
        <error_code>200</error_code>
        <request_id>1</request_id>
        <content>1</content>
    </result>
</alibaba_ib_workcore_person_getaccountid_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

返回
顶部