alibaba.mos.common.auth.operator.info (获取当前人员信息)

获取当前人员信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
token String 必须 xxxxxxx 登录授权后返回的token信息

响应参数

名称 类型 示例值 描述
trace_id String xxxx 调用链id
async_result String null 异步结果
data OperatorUserInfo 授权的人员信息
  • └ id
  • Number
  • 1
  • operator id
  • └ ali_work_no
  • String
  • aaa
  • 阿里工号
  • └ comp_work_no
  • String
  • aaa
  • 银泰工号
  • └ user_id
  • Number
  • 11
  • 淘宝id
  • └ name
  • String
  • aaa
  • 姓名
  • └ outer_id
  • String
  • 111
  • misId(hrUserId)
issuccess Boolean true 调用是否成功
errcode String 500 错误code
is_async Boolean false 是否同步
attributes Json null 扩展字段
err_message String xxx 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMosCommonAuthOperatorInfoRequest req = new AlibabaMosCommonAuthOperatorInfoRequest();
req.setToken("xxxxxxx");
AlibabaMosCommonAuthOperatorInfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mos_common_auth_operator_info_response>
    <trace_id>xxxx</trace_id>
    <async_result>null</async_result>
    <data>
        <id>1</id>
        <ali_work_no>aaa</ali_work_no>
        <comp_work_no>aaa</comp_work_no>
        <user_id>11</user_id>
        <name>aaa</name>
        <outer_id>111</outer_id>
    </data>
    <issuccess>true</issuccess>
    <errcode>500</errcode>
    <is_async>false</is_async>
    <attributes>null</attributes>
    <err_message>xxx</err_message>
</alibaba_mos_common_auth_operator_info_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

返回
顶部