TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPicturesDengtaComponentBoxofficeRequest req = new AlibabaPicturesDengtaComponentBoxofficeRequest();
AlibabaPicturesDengtaComponentBoxofficeRequest.BoxOfficeIndexRequest obj1 = new AlibabaPicturesDengtaComponentBoxofficeRequest.BoxOfficeIndexRequest();
obj1.setCityId(-5L);
obj1.setDeviceId("X7jJ7bKYxfEDAH7qRhTrbfdC");
AlibabaPicturesDengtaComponentBoxofficeRequest.DateQuery obj2 = new AlibabaPicturesDengtaComponentBoxofficeRequest.DateQuery();
obj2.setBeginDate("20210112");
obj2.setDateType(1L);
obj2.setEndDate("20210113");
obj1.setDateQuery(obj2);
obj1.setUtdid("+XtOer9XgUDAFDWJHdfxK7N");
obj1.setVersion("客户端版本");
obj1.setTtid("movie_pro");
obj1.setClientIp("192.167.1.1");
req.setRequestParam(obj1);
AlibabaPicturesDengtaComponentBoxofficeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaPicturesDengtaComponentBoxofficeRequest req = new AlibabaPicturesDengtaComponentBoxofficeRequest();
AlibabaPicturesDengtaComponentBoxofficeRequest.BoxOfficeIndexRequestDomain obj1 = new AlibabaPicturesDengtaComponentBoxofficeRequest.BoxOfficeIndexRequestDomain();
obj1.CityId = -5L;
obj1.DeviceId = "X7jJ7bKYxfEDAH7qRhTrbfdC";
AlibabaPicturesDengtaComponentBoxofficeRequest.DateQueryDomain obj2 = new AlibabaPicturesDengtaComponentBoxofficeRequest.DateQueryDomain();
obj2.BeginDate = "20210112";
obj2.DateType = 1L;
obj2.EndDate = "20210113";
obj1.DateQuery= obj2;
obj1.Utdid = "+XtOer9XgUDAFDWJHdfxK7N";
obj1.Version = "客户端版本";
obj1.Ttid = "movie_pro";
obj1.ClientIp = "192.167.1.1";
req.RequestParam_ = obj1;
AlibabaPicturesDengtaComponentBoxofficeResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaPicturesDengtaComponentBoxofficeRequest;
$request_param = new BoxOfficeIndexRequest;
$request_param->city_id="-5";
$request_param->device_id="X7jJ7bKYxfEDAH7qRhTrbfdC";
$date_query = new DateQuery;
$date_query->begin_date="20210112";
$date_query->date_type="1";
$date_query->end_date="20210113";
$request_param->date_query = $date_query;
$request_param->utdid="+XtOer9XgUDAFDWJHdfxK7N";
$request_param->version="客户端版本";
$request_param->ttid="movie_pro";
$request_param->client_ip="192.167.1.1";
$req->setRequestParam(json_encode($request_param));
$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=alibaba.pictures.dengta.component.boxoffice' \
-d 'partner_id=apidoc' \
-d 'sign=A0299B39749E7ECA6BB9AA7C8DC40E17' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-04+15%3A33%3A19' \
-d 'v=2.0' \
-d 'request_param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaPicturesDengtaComponentBoxofficeRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.request_param=""
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,"alibaba.pictures.dengta.component.boxoffice");
add_param(pRequest,"request_param","数据结构JSON示例");
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('alibaba.pictures.dengta.component.boxoffice', {
'request_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})