TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AuctionGovGetCourtReportRequest req = new AuctionGovGetCourtReportRequest();
req.setCourtName("浙江省高级人民法院");
req.setContainChild(true);
req.setStartTime(StringUtils.parseDateTime("2016-08-01 00:00:00"));
req.setEndTime(StringUtils.parseDateTime("2016-08-19 00:00:00"));
req.setReportType(4L);
AuctionGovGetCourtReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AuctionGovGetCourtReportRequest req = new AuctionGovGetCourtReportRequest();
req.CourtName = "浙江省高级人民法院";
req.ContainChild = true;
req.StartTime = DateTime.Parse("2016-08-01 00:00:00");
req.EndTime = DateTime.Parse("2016-08-19 00:00:00");
req.ReportType = 4L;
AuctionGovGetCourtReportResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AuctionGovGetCourtReportRequest;
$req->setCourtName("浙江省高级人民法院");
$req->setContainChild("true");
$req->setStartTime("2016-08-01 00:00:00");
$req->setEndTime("2016-08-19 00:00:00");
$req->setReportType("4");
$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.auction.gov.get.court.report' \
-d 'partner_id=apidoc' \
-d 'sign=BD3B384B2C97413A98AF590F580DFD93' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-24+15%3A38%3A56' \
-d 'v=2.0' \
-d 'contain_child=true' \
-d 'court_name=%E6%B5%99%E6%B1%9F%E7%9C%81%E9%AB%98%E7%BA%A7%E4%BA%BA%E6%B0%91%E6%B3%95%E9%99%A2' \
-d 'end_time=2016-08-19+00%3A00%3A00' \
-d 'report_type=4' \
-d 'start_time=2016-08-01+00%3A00%3A00'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AuctionGovGetCourtReportRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.court_name="浙江省高级人民法院"
req.contain_child=true
req.start_time="2016-08-01 00:00:00"
req.end_time="2016-08-19 00:00:00"
req.report_type=4
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.auction.gov.get.court.report");
add_param(pRequest,"court_name","浙江省高级人民法院");
add_param(pRequest,"contain_child","true");
add_param(pRequest,"start_time","2016-08-01 00:00:00");
add_param(pRequest,"end_time","2016-08-19 00:00:00");
add_param(pRequest,"report_type","4");
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.auction.gov.get.court.report', {
'court_name':'浙江省高级人民法院',
'contain_child':'true',
'start_time':'2016-08-01 00:00:00',
'end_time':'2016-08-19 00:00:00',
'report_type':'4'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})