TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
DianyingYkBoxofficegetRequest req = new DianyingYkBoxofficegetRequest();
req.setBeginDate("2016-01-01");
req.setEndDate("2016-01-01");
req.setDataType(1L);
req.setExtendSearch("null");
req.setPageIndex(1L);
req.setPageSize(20L);
DianyingYkBoxofficegetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
DianyingYkBoxofficegetRequest req = new DianyingYkBoxofficegetRequest();
req.BeginDate = "2016-01-01";
req.EndDate = "2016-01-01";
req.DataType = 1L;
req.ExtendSearch = "null";
req.PageIndex = 1L;
req.PageSize = 20L;
DianyingYkBoxofficegetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new DianyingYkBoxofficegetRequest;
$req->setBeginDate("2016-01-01");
$req->setEndDate("2016-01-01");
$req->setDataType("1");
$req->setExtendSearch("null");
$req->setPageIndex("1");
$req->setPageSize("20");
$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.dianying.yk.boxofficeget' \
-d 'partner_id=apidoc' \
-d 'sign=5D2E77CA15262565FE0C645074C98A8E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-21+17%3A40%3A01' \
-d 'v=2.0' \
-d 'begin_date=2016-01-01' \
-d 'data_type=1' \
-d 'end_date=2016-01-01' \
-d 'extend_search=null' \
-d 'page_index=1' \
-d 'page_size=20'
# -*- coding: utf-8 -*-
import top.api
req=top.api.DianyingYkBoxofficegetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.begin_date="2016-01-01"
req.end_date="2016-01-01"
req.data_type=1
req.extend_search="null"
req.page_index=1
req.page_size=20
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.dianying.yk.boxofficeget");
add_param(pRequest,"begin_date","2016-01-01");
add_param(pRequest,"end_date","2016-01-01");
add_param(pRequest,"data_type","1");
add_param(pRequest,"extend_search","null");
add_param(pRequest,"page_index","1");
add_param(pRequest,"page_size","20");
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.dianying.yk.boxofficeget', {
'begin_date':'2016-01-01',
'end_date':'2016-01-01',
'data_type':'1',
'extend_search':'null',
'page_index':'1',
'page_size':'20'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})