TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkContentOrderGetRequest req = new TbkContentOrderGetRequest();
req.setContId("123");
req.setQTime("2022-05-22 15:00:00");
req.setPageSize(20L);
req.setPageNo(1L);
req.setAdzoneId("1");
TbkContentOrderGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkContentOrderGetRequest req = new TbkContentOrderGetRequest();
req.ContId = "123";
req.QTime = "2022-05-22 15:00:00";
req.PageSize = 20L;
req.PageNo = 1L;
req.AdzoneId = "1";
TbkContentOrderGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkContentOrderGetRequest;
$req->setContId("123");
$req->setQTime("2022-05-22 15:00:00");
$req->setPageSize("20");
$req->setPageNo("1");
$req->setAdzoneId("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.content.order.get' \
-d 'partner_id=apidoc' \
-d 'sign=562814691FEB5F5E1100B3B15092AE2C' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+00%3A56%3A06' \
-d 'v=2.0' \
-d 'adzone_id=1' \
-d 'cont_id=123' \
-d 'page_no=1' \
-d 'page_size=20' \
-d 'q_time=2022-05-22+15%3A00%3A00'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkContentOrderGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.cont_id="123"
req.q_time="2022-05-22 15:00:00"
req.page_size=20
req.page_no=1
req.adzone_id="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.content.order.get");
add_param(pRequest,"cont_id","123");
add_param(pRequest,"q_time","2022-05-22 15:00:00");
add_param(pRequest,"page_size","20");
add_param(pRequest,"page_no","1");
add_param(pRequest,"adzone_id","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.content.order.get', {
'cont_id':'123',
'q_time':'2022-05-22 15:00:00',
'page_size':'20',
'page_no':'1',
'adzone_id':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})