文档中心 > API类目 > 斑马小程序

yunos.ebanma.miniapp.oemops.user.query (查询用户角色信息)

查询当前oem登录用户身份

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
account_id String 必须 tt_id 账号ID
account_site String 必须 www.taobao.com 账号系统

响应参数

名称 类型 示例值 描述
result Result 接口返回model
  • └ msg
  • String
  • success
  • 接口返回信息
  • └ code
  • Number
  • 0
  • 接口返回码 0成功
  • └ success
  • Boolean
  • true
  • 是否成功
  • users
  • OemUser []
  • 角色列表
  • └ role
  • String
  • OPS
  • 用户角色
  • └ nick_name
  • String
  • xiaoli
  • 昵称
  • └ account_site
  • String
  • 723423
  • 账号系统
  • └ account_id
  • String
  • sdfsdf
  • 账号ID
  • └ id
  • Number
  • 13
  • 用户ID
  • └ channel_id
  • Number
  • 1
  • 渠道ID
  • └ channel_name
  • String
  • sss
  • 渠道名称
  • └ channel_icon
  • String
  • http://bm-miniapp.oss-cn-hangzhou-zmf.aliyuncs.com/92c298d5ba1811ebb54b72745ba63749
  • 渠道图标
  • └ channel_update_strategy
  • String
  • AUTO
  • 更新策略

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosEbanmaMiniappOemopsUserQueryRequest req = new YunosEbanmaMiniappOemopsUserQueryRequest();
req.setAccountId("tt_id");
req.setAccountSite("www.taobao.com");
YunosEbanmaMiniappOemopsUserQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<yunos_ebanma_miniapp_oemops_user_query_response>
    <result>
        <msg>success</msg>
        <code>0</code>
        <success>true</success>
        <users>
            <oem_user>
                <role>OPS</role>
                <nick_name>xiaoli</nick_name>
                <account_site>723423</account_site>
                <account_id>sdfsdf</account_id>
                <id>13</id>
                <channel_id>1</channel_id>
                <channel_name>sss</channel_name>
                <channel_icon>http://bm-miniapp.oss-cn-hangzhou-zmf.aliyuncs.com/92c298d5ba1811ebb54b72745ba63749</channel_icon>
                <channel_update_strategy>AUTO</channel_update_strategy>
            </oem_user>
        </users>
    </result>
</yunos_ebanma_miniapp_oemops_user_query_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

返回
顶部