TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaUccGeneralAliecoBindSyncRequest req = new AlibabaUccGeneralAliecoBindSyncRequest();
AlibabaUccGeneralAliecoBindSyncRequest.BindDto obj1 = new AlibabaUccGeneralAliecoBindSyncRequest.BindDto();
obj1.setSite("gaode");
obj1.setBindTimestamp(1535368793884L);
obj1.setBindType(0L);
obj1.setUserId("123233");
obj1.setBindUserId("321233");
obj1.setBindUserType(0L);
obj1.setBindSite("taobao");
req.setBindDto(obj1);
AlibabaUccGeneralAliecoBindSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaUccGeneralAliecoBindSyncRequest req = new AlibabaUccGeneralAliecoBindSyncRequest();
AlibabaUccGeneralAliecoBindSyncRequest.BindDtoDomain obj1 = new AlibabaUccGeneralAliecoBindSyncRequest.BindDtoDomain();
obj1.Site = "gaode";
obj1.BindTimestamp = 1535368793884L;
obj1.BindType = 0L;
obj1.UserId = "123233";
obj1.BindUserId = "321233";
obj1.BindUserType = 0L;
obj1.BindSite = "taobao";
req.BindDto_ = obj1;
AlibabaUccGeneralAliecoBindSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaUccGeneralAliecoBindSyncRequest;
$bind_dto = new BindDto;
$bind_dto->site="gaode";
$bind_dto->bind_timestamp="1535368793884";
$bind_dto->bind_type="0";
$bind_dto->user_id="123233";
$bind_dto->bind_user_id="321233";
$bind_dto->bind_user_type="0";
$bind_dto->bind_site="taobao";
$req->setBindDto(json_encode($bind_dto));
$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=alibaba.ucc.general.alieco.bind.sync' \
-d 'partner_id=apidoc' \
-d 'sign=ED48C11392B5CEC72057CA31205D52F5' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+16%3A06%3A20' \
-d 'v=2.0' \
-d 'bind_dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaUccGeneralAliecoBindSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.bind_dto=""
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,"alibaba.ucc.general.alieco.bind.sync");
add_param(pRequest,"bind_dto","数据结构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('alibaba.ucc.general.alieco.bind.sync', {
'bind_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})