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());
ITopClient client = new DefaultTopClient(url, appkey, secret);
RhinoIntegrationAccountUserSyncRequest req = new RhinoIntegrationAccountUserSyncRequest();
RhinoIntegrationAccountUserSyncRequest.SyncUserInfoReqDomain obj1 = new RhinoIntegrationAccountUserSyncRequest.SyncUserInfoReqDomain();
obj1.EmployeeName = "张三";
obj1.Mobile = "132xxxx";
obj1.UserName = "张三";
obj1.UserSourceId = "zhangsan";
obj1.WorkNo = "R001";
obj1.EnterpriseSourceId = "100001";
obj1.UpdateType = "A";
req.SyncUserInfoReq_ = obj1;
RhinoIntegrationAccountUserSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new RhinoIntegrationAccountUserSyncRequest;
$sync_user_info_req = new SyncUserInfoReq;
$sync_user_info_req->employee_name="张三";
$sync_user_info_req->mobile="132xxxx";
$sync_user_info_req->user_name="张三";
$sync_user_info_req->user_source_id="zhangsan";
$sync_user_info_req->work_no="R001";
$sync_user_info_req->enterprise_source_id="100001";
$sync_user_info_req->update_type="A";
$req->setSyncUserInfoReq(json_encode($sync_user_info_req));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=taobao.rhino.integration.account.user.sync' \
-d 'partner_id=apidoc' \
-d 'sign=33CEC450E63383EE14108211FCA88535' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+20%3A32%3A12' \
-d 'v=2.0' \
-d 'sync_user_info_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.RhinoIntegrationAccountUserSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.sync_user_info_req="数据结构示例JSON格式"
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"taobao.rhino.integration.account.user.sync");
add_param(pRequest,"sync_user_info_req","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.rhino.integration.account.user.sync', {
'sync_user_info_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})