TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkScShopConvertRequest req = new TbkScShopConvertRequest();
req.setAdzoneId(123L);
req.setFields("user_id,click_url");
req.setPlatform(1L);
req.setSiteId(1L);
req.setUnid("demo");
req.setUserIds("123,456");
TbkScShopConvertResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkScShopConvertRequest req = new TbkScShopConvertRequest();
req.AdzoneId = 123L;
req.Fields = "user_id,click_url";
req.Platform = 1L;
req.SiteId = 1L;
req.Unid = "demo";
req.UserIds = "123,456";
TbkScShopConvertResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkScShopConvertRequest;
$req->setAdzoneId("123");
$req->setFields("user_id,click_url");
$req->setPlatform("1");
$req->setSiteId("1");
$req->setUnid("demo");
$req->setUserIds("123,456");
$resp = $c->execute($req, $sessionKey);
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.tbk.sc.shop.convert' \
-d 'partner_id=apidoc' \
-d 'session=212b191a-7ae3-4543-be44-4fafd27dab2e' \
-d 'sign=3DC67BF7A9758CA95BF26668E0186350' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+01%3A07%3A55' \
-d 'v=2.0' \
-d 'adzone_id=123' \
-d 'fields=user_id%2Cclick_url' \
-d 'platform=1' \
-d 'site_id=1' \
-d 'unid=demo' \
-d 'user_ids=123%2C456'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkScShopConvertRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.adzone_id=123
req.fields="user_id,click_url"
req.platform=1
req.site_id=1
req.unid="demo"
req.user_ids="123,456"
try:
resp= req.getResponse(sessionkey)
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.tbk.sc.shop.convert");
add_param(pRequest,"adzone_id","123");
add_param(pRequest,"fields","user_id,click_url");
add_param(pRequest,"platform","1");
add_param(pRequest,"site_id","1");
add_param(pRequest,"unid","demo");
add_param(pRequest,"user_ids","123,456");
pResponse = top_execute(pClient,pRequest,sessionKey);
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.tbk.sc.shop.convert', {
'adzone_id':'123',
'fields':'user_id,click_url',
'platform':'1',
'site_id':'1',
'unid':'demo',
'user_ids':'123,456'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})