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

alibaba.campus.core.person.getaccountidbypassportaccountid (根据passportaccountId获取accountId)

根据passportaccountId获取accountId

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
work_bench_context WorkBenchContext 可选 平台统一权限校验
  • └ user_id
  • Number
  • 可选
  • 1
  • 账户id
  • └ system_id
  • String
  • 可选
  • 1
  • 系统id
  • └ campus_id
  • Number
  • 可选
  • 1
  • 园区id

响应参数

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

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_core_person_getaccountidbypassportaccountid_response>
    <result>
        <content>1</content>
        <request_id>1</request_id>
        <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>0</error_level>
    </result>
</alibaba_campus_core_person_getaccountidbypassportaccountid_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

返回
顶部