TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkScNewuserOrderGetRequest req = new TbkScNewuserOrderGetRequest();
req.setPageSize(20L);
req.setPageNo(1L);
req.setAdzoneId(123L);
req.setSiteId(123L);
req.setActivityId("119013_2");
req.setEndTime(StringUtils.parseDateTime("2018-01-24 00:34:05"));
req.setStartTime(StringUtils.parseDateTime("2018-01-24 00:34:05"));
TbkScNewuserOrderGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkScNewuserOrderGetRequest req = new TbkScNewuserOrderGetRequest();
req.PageSize = 20L;
req.PageNo = 1L;
req.AdzoneId = 123L;
req.SiteId = 123L;
req.ActivityId = "119013_2";
req.EndTime = DateTime.Parse("2018-01-24 00:34:05");
req.StartTime = DateTime.Parse("2018-01-24 00:34:05");
TbkScNewuserOrderGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkScNewuserOrderGetRequest;
$req->setPageSize("20");
$req->setPageNo("1");
$req->setAdzoneId("123");
$req->setSiteId("123");
$req->setActivityId("119013_2");
$req->setEndTime("2018-01-24 00:34:05");
$req->setStartTime("2018-01-24 00:34:05");
$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.newuser.order.get' \
-d 'partner_id=apidoc' \
-d 'session=a15d6da7-c118-4611-90d5-aceef9aed76c' \
-d 'sign=0EB125125DB930ABFD86D860CFE955A6' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+00%3A54%3A08' \
-d 'v=2.0' \
-d 'activity_id=119013_2' \
-d 'adzone_id=123' \
-d 'end_time=2018-01-24+00%3A34%3A05' \
-d 'page_no=1' \
-d 'page_size=20' \
-d 'site_id=123' \
-d 'start_time=2018-01-24+00%3A34%3A05'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkScNewuserOrderGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.page_size=20
req.page_no=1
req.adzone_id=123
req.site_id=123
req.activity_id="119013_2"
req.end_time="2018-01-24 00:34:05"
req.start_time="2018-01-24 00:34:05"
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.newuser.order.get");
add_param(pRequest,"page_size","20");
add_param(pRequest,"page_no","1");
add_param(pRequest,"adzone_id","123");
add_param(pRequest,"site_id","123");
add_param(pRequest,"activity_id","119013_2");
add_param(pRequest,"end_time","2018-01-24 00:34:05");
add_param(pRequest,"start_time","2018-01-24 00:34:05");
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.newuser.order.get', {
'page_size':'20',
'page_no':'1',
'adzone_id':'123',
'site_id':'123',
'activity_id':'119013_2',
'end_time':'2018-01-24 00:34:05',
'start_time':'2018-01-24 00:34:05'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})