TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkDgContentMediaDailyReportRequest req = new TbkDgContentMediaDailyReportRequest();
req.setReportTypeId("union_content_media_daily_report");
req.setReturnFields("pub_id,name,sub_pub_id,sub_site_id,sub_adzone_id,biz_type,union_pv,union_uv,cm_settle_num,cm_settle_amt,cm_pub_share_fee,div_rule");
req.setFilters("ds=20191020");
req.setDimensions("ds");
req.setPageNo(1L);
req.setPageSize(20L);
TbkDgContentMediaDailyReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkDgContentMediaDailyReportRequest req = new TbkDgContentMediaDailyReportRequest();
req.ReportTypeId = "union_content_media_daily_report";
req.ReturnFields = "pub_id,name,sub_pub_id,sub_site_id,sub_adzone_id,biz_type,union_pv,union_uv,cm_settle_num,cm_settle_amt,cm_pub_share_fee,div_rule";
req.Filters = "ds=20191020";
req.Dimensions = "ds";
req.PageNo = 1L;
req.PageSize = 20L;
TbkDgContentMediaDailyReportResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkDgContentMediaDailyReportRequest;
$req->setReportTypeId("union_content_media_daily_report");
$req->setReturnFields("pub_id,name,sub_pub_id,sub_site_id,sub_adzone_id,biz_type,union_pv,union_uv,cm_settle_num,cm_settle_amt,cm_pub_share_fee,div_rule");
$req->setFilters("ds=20191020");
$req->setDimensions("ds");
$req->setPageNo("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.tbk.dg.content.media.daily.report' \
-d 'partner_id=apidoc' \
-d 'sign=93A5BE6309471F587D6C3513E5A7F39E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+00%3A56%3A06' \
-d 'v=2.0' \
-d 'dimensions=ds' \
-d 'filters=ds%3D20191020' \
-d 'page_no=1' \
-d 'page_size=20' \
-d 'report_type_id=union_content_media_daily_report' \
-d 'return_fields=pub_id%2Cname%2Csub_pub_id%2Csub_site_id%2Csub_adzone_id%2Cbiz_type%2Cunion_pv%2Cunion_uv%2Ccm_settle_num%2Ccm_settle_amt%2Ccm_pub_share_fee%2Cdiv_rule'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkDgContentMediaDailyReportRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.report_type_id="union_content_media_daily_report"
req.return_fields="pub_id,name,sub_pub_id,sub_site_id,sub_adzone_id,biz_type,union_pv,union_uv,cm_settle_num,cm_settle_amt,cm_pub_share_fee,div_rule"
req.filters="ds=20191020"
req.dimensions="ds"
req.page_no=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.tbk.dg.content.media.daily.report");
add_param(pRequest,"report_type_id","union_content_media_daily_report");
add_param(pRequest,"return_fields","pub_id,name,sub_pub_id,sub_site_id,sub_adzone_id,biz_type,union_pv,union_uv,cm_settle_num,cm_settle_amt,cm_pub_share_fee,div_rule");
add_param(pRequest,"filters","ds=20191020");
add_param(pRequest,"dimensions","ds");
add_param(pRequest,"page_no","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.tbk.dg.content.media.daily.report', {
'report_type_id':'union_content_media_daily_report',
'return_fields':'pub_id,name,sub_pub_id,sub_site_id,sub_adzone_id,biz_type,union_pv,union_uv,cm_settle_num,cm_settle_amt,cm_pub_share_fee,div_rule',
'filters':'ds=20191020',
'dimensions':'ds',
'page_no':'1',
'page_size':'20'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})