TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkDgMediaKuaishouMonthlyReportRequest req = new TbkDgMediaKuaishouMonthlyReportRequest();
req.setReportTypeId("union_media_monthly_report_kuaishou");
req.setReturnFields("pub_id,sub_pub_id,sub_site_id,sub_adzone_id,div_rule,total_alipay_amt,settle_amount");
req.setDimensions("ds");
req.setPageNo(1L);
req.setPageSize(20L);
req.setFilters("ds=201908;div_rule=2");
TbkDgMediaKuaishouMonthlyReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkDgMediaKuaishouMonthlyReportRequest req = new TbkDgMediaKuaishouMonthlyReportRequest();
req.ReportTypeId = "union_media_monthly_report_kuaishou";
req.ReturnFields = "pub_id,sub_pub_id,sub_site_id,sub_adzone_id,div_rule,total_alipay_amt,settle_amount";
req.Dimensions = "ds";
req.PageNo = 1L;
req.PageSize = 20L;
req.Filters = "ds=201908;div_rule=2";
TbkDgMediaKuaishouMonthlyReportResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkDgMediaKuaishouMonthlyReportRequest;
$req->setReportTypeId("union_media_monthly_report_kuaishou");
$req->setReturnFields("pub_id,sub_pub_id,sub_site_id,sub_adzone_id,div_rule,total_alipay_amt,settle_amount");
$req->setDimensions("ds");
$req->setPageNo("1");
$req->setPageSize("20");
$req->setFilters("ds=201908;div_rule=2");
$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.media.kuaishou.monthly.report' \
-d 'partner_id=apidoc' \
-d 'sign=7C3053085787D18C4CD637A54D22B8BD' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+00%3A43%3A56' \
-d 'v=2.0' \
-d 'dimensions=ds' \
-d 'filters=ds%3D201908%3Bdiv_rule%3D2' \
-d 'page_no=1' \
-d 'page_size=20' \
-d 'report_type_id=union_media_monthly_report_kuaishou' \
-d 'return_fields=pub_id%2Csub_pub_id%2Csub_site_id%2Csub_adzone_id%2Cdiv_rule%2Ctotal_alipay_amt%2Csettle_amount'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkDgMediaKuaishouMonthlyReportRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.report_type_id="union_media_monthly_report_kuaishou"
req.return_fields="pub_id,sub_pub_id,sub_site_id,sub_adzone_id,div_rule,total_alipay_amt,settle_amount"
req.dimensions="ds"
req.page_no=1
req.page_size=20
req.filters="ds=201908;div_rule=2"
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.media.kuaishou.monthly.report");
add_param(pRequest,"report_type_id","union_media_monthly_report_kuaishou");
add_param(pRequest,"return_fields","pub_id,sub_pub_id,sub_site_id,sub_adzone_id,div_rule,total_alipay_amt,settle_amount");
add_param(pRequest,"dimensions","ds");
add_param(pRequest,"page_no","1");
add_param(pRequest,"page_size","20");
add_param(pRequest,"filters","ds=201908;div_rule=2");
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.media.kuaishou.monthly.report', {
'report_type_id':'union_media_monthly_report_kuaishou',
'return_fields':'pub_id,sub_pub_id,sub_site_id,sub_adzone_id,div_rule,total_alipay_amt,settle_amount',
'dimensions':'ds',
'page_no':'1',
'page_size':'20',
'filters':'ds=201908;div_rule=2'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})