TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoCntecLocallifeBizQuerySettlementBillListRequest req = new CainiaoCntecLocallifeBizQuerySettlementBillListRequest();
req.setBizType("RECYCLE_CLOTHES");
CainiaoCntecLocallifeBizQuerySettlementBillListRequest.RecycleOrderAndStationIdReqDTO obj1 = new CainiaoCntecLocallifeBizQuerySettlementBillListRequest.RecycleOrderAndStationIdReqDTO();
obj1.setOrderId("11");
obj1.setStationId(222L);
req.setOrderAndStationIdList(obj1);
req.setFeatureMapString("{}");
CainiaoCntecLocallifeBizQuerySettlementBillListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
CainiaoCntecLocallifeBizQuerySettlementBillListRequest req = new CainiaoCntecLocallifeBizQuerySettlementBillListRequest();
req.BizType = "RECYCLE_CLOTHES";
CainiaoCntecLocallifeBizQuerySettlementBillListRequest.RecycleOrderAndStationIdReqDTODomain obj1 = new CainiaoCntecLocallifeBizQuerySettlementBillListRequest.RecycleOrderAndStationIdReqDTODomain();
obj1.OrderId = "11";
obj1.StationId = 222L;
req.OrderAndStationIdList_ = obj1;
req.FeatureMap = "{}";
CainiaoCntecLocallifeBizQuerySettlementBillListResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new CainiaoCntecLocallifeBizQuerySettlementBillListRequest;
$req->setBizType("RECYCLE_CLOTHES");
$order_and_station_id_list = new RecycleOrderAndStationIdReqDTO;
$order_and_station_id_list->order_id="11";
$order_and_station_id_list->station_id="222";
$req->setOrderAndStationIdList(json_encode($order_and_station_id_list));
$req->setFeatureMap("{}");
$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=cainiao.cntec.locallife.biz.query.settlement.bill.list' \
-d 'partner_id=apidoc' \
-d 'sign=38ED5C803E5E349E0778C2D799D95F2B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+17%3A46%3A41' \
-d 'v=2.0' \
-d 'biz_type=RECYCLE_CLOTHES' \
-d 'feature_map=%7B%7D' \
-d 'order_and_station_id_list=11%2C22'
# -*- coding: utf-8 -*-
import top.api
req=top.api.CainiaoCntecLocallifeBizQuerySettlementBillListRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.biz_type="RECYCLE_CLOTHES"
req.order_and_station_id_list="[11,22]"
req.feature_map="{}"
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,"cainiao.cntec.locallife.biz.query.settlement.bill.list");
add_param(pRequest,"biz_type","RECYCLE_CLOTHES");
add_param(pRequest,"order_and_station_id_list","数据结构JSON示例");
add_param(pRequest,"feature_map","{}");
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('cainiao.cntec.locallife.biz.query.settlement.bill.list', {
'biz_type':'RECYCLE_CLOTHES',
'order_and_station_id_list':'数据结构JSON示例',
'feature_map':'{}'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})