文档中心 > API类目 > 新制造API

taobao.rhino.integration.account.user.sync (账号中心.用户信息同步)

账号中心.用户信息同步

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
sync_user_info_req SyncUserInfoReq 可选 用户信息同步请求
  • └ employee_name
  • String
  • 必须
  • 张三
  • 用户名称
  • └ mobile
  • String
  • 可选
  • 132xxxx
  • 手机号
  • └ user_name
  • String
  • 必须
  • 张三
  • 用户名称
  • └ user_source_id
  • String
  • 必须
  • zhangsan
  • 来源用户ID(企业下唯一账号)
  • └ work_no
  • String
  • 可选
  • R001
  • 工号
  • └ enterprise_source_id
  • String
  • 必须
  • 100001
  • 来源企业ID(系统唯一ID)
  • └ update_type
  • String
  • 必须
  • A
  • 操作类型(A-新增,M-修改,D-删除)

响应参数

名称 类型 示例值 描述
result HSFResult 结果
  • └ code
  • Number
  • 200
  • 响应码
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ model
  • Boolean
  • true
  • 是否成功
  • └ message
  • String
  • 成功
  • 返回信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RhinoIntegrationAccountUserSyncRequest req = new RhinoIntegrationAccountUserSyncRequest();
RhinoIntegrationAccountUserSyncRequest.SyncUserInfoReq obj1 = new RhinoIntegrationAccountUserSyncRequest.SyncUserInfoReq();
obj1.setEmployeeName("张三");
obj1.setMobile("132xxxx");
obj1.setUserName("张三");
obj1.setUserSourceId("zhangsan");
obj1.setWorkNo("R001");
obj1.setEnterpriseSourceId("100001");
obj1.setUpdateType("A");
req.setSyncUserInfoReq(obj1);
RhinoIntegrationAccountUserSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<rhino_integration_account_user_sync_response>
    <result>
        <code>200</code>
        <success>true</success>
        <model>true</model>
        <message>成功</message>
    </result>
</rhino_integration_account_user_sync_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

返回
顶部