TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkSeedKoxWriteRequest req = new TbkSeedKoxWriteRequest();
req.setBatchNo(1L);
req.setTotalSize(500L);
req.setDataList("[\"B站\",\"abc\"]");
req.setReportTypeId("kox-rpt-write");
req.setReportDs(20240715L);
req.setBatchSize(50L);
req.setVersion(1L);
TbkSeedKoxWriteResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkSeedKoxWriteRequest req = new TbkSeedKoxWriteRequest();
req.BatchNo = 1L;
req.TotalSize = 500L;
req.DataList = "[\"B站\",\"abc\"]";
req.ReportTypeId = "kox-rpt-write";
req.ReportDs = 20240715L;
req.BatchSize = 50L;
req.Version = 1L;
TbkSeedKoxWriteResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkSeedKoxWriteRequest;
$req->setBatchNo("1");
$req->setTotalSize("500");
$req->setDataList("[\"B站\",\"abc\"]");
$req->setReportTypeId("kox-rpt-write");
$req->setReportDs("20240715");
$req->setBatchSize("50");
$req->setVersion("1");
$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.tbk.seed.kox.write' \
-d 'partner_id=apidoc' \
-d 'sign=F1D41EB6182D16E306FEDE018165BD8E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+01%3A09%3A53' \
-d 'v=2.0' \
-d 'batch_no=1' \
-d 'batch_size=50' \
-d 'data_list=%22B%E7%AB%99%22%2C%22abc%22' \
-d 'report_ds=20240715' \
-d 'report_type_id=kox-rpt-write' \
-d 'total_size=500' \
-d 'version=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkSeedKoxWriteRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.batch_no=1
req.total_size=500
req.data_list="[\"B站\",\"abc\"]"
req.report_type_id="kox-rpt-write"
req.report_ds=20240715
req.batch_size=50
req.version=1
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.tbk.seed.kox.write");
add_param(pRequest,"batch_no","1");
add_param(pRequest,"total_size","500");
add_param(pRequest,"data_list",""B站","abc"");
add_param(pRequest,"report_type_id","kox-rpt-write");
add_param(pRequest,"report_ds","20240715");
add_param(pRequest,"batch_size","50");
add_param(pRequest,"version","1");
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.tbk.seed.kox.write', {
'batch_no':'1',
'total_size':'500',
'data_list':'"B站","abc"',
'report_type_id':'kox-rpt-write',
'report_ds':'20240715',
'batch_size':'50',
'version':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})