TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkScCpOrderDetailsGetRequest req = new TbkScCpOrderDetailsGetRequest();
req.setJumpType(1L);
req.setPageSize(20L);
req.setQueryType(1L);
req.setPageNo(1L);
req.setStartTime("2020-04-01 00:00:01");
req.setPositionIndex("1123213_123213");
req.setEndTime("2020-04-01 01:00:01");
req.setTkStatus(12L);
TbkScCpOrderDetailsGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkScCpOrderDetailsGetRequest req = new TbkScCpOrderDetailsGetRequest();
req.JumpType = 1L;
req.PageSize = 20L;
req.QueryType = 1L;
req.PageNo = 1L;
req.StartTime = "2020-04-01 00:00:01";
req.PositionIndex = "1123213_123213";
req.EndTime = "2020-04-01 01:00:01";
req.TkStatus = 12L;
TbkScCpOrderDetailsGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkScCpOrderDetailsGetRequest;
$req->setJumpType("1");
$req->setPageSize("20");
$req->setQueryType("1");
$req->setPageNo("1");
$req->setStartTime("2020-04-01 00:00:01");
$req->setPositionIndex("1123213_123213");
$req->setEndTime("2020-04-01 01:00:01");
$req->setTkStatus("12");
$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.cp.order.details.get' \
-d 'partner_id=apidoc' \
-d 'session=083a10b7-3f5f-4562-ad3a-12359abd67b7' \
-d 'sign=71FBEE8441EE71ADC283ECECA0CE0CA3' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+00%3A47%3A11' \
-d 'v=2.0' \
-d 'end_time=2020-04-01+01%3A00%3A01' \
-d 'jump_type=1' \
-d 'page_no=1' \
-d 'page_size=20' \
-d 'position_index=1123213_123213' \
-d 'query_type=1' \
-d 'start_time=2020-04-01+00%3A00%3A01' \
-d 'tk_status=12'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkScCpOrderDetailsGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.jump_type=1
req.page_size=20
req.query_type=1
req.page_no=1
req.start_time="2020-04-01 00:00:01"
req.position_index="1123213_123213"
req.end_time="2020-04-01 01:00:01"
req.tk_status=12
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.cp.order.details.get");
add_param(pRequest,"jump_type","1");
add_param(pRequest,"page_size","20");
add_param(pRequest,"query_type","1");
add_param(pRequest,"page_no","1");
add_param(pRequest,"start_time","2020-04-01 00:00:01");
add_param(pRequest,"position_index","1123213_123213");
add_param(pRequest,"end_time","2020-04-01 01:00:01");
add_param(pRequest,"tk_status","12");
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.cp.order.details.get', {
'jump_type':'1',
'page_size':'20',
'query_type':'1',
'page_no':'1',
'start_time':'2020-04-01 00:00:01',
'position_index':'1123213_123213',
'end_time':'2020-04-01 01:00:01',
'tk_status':'12'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})