TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WlbWaybillIPrintRequest req = new WlbWaybillIPrintRequest();
WlbWaybillIPrintRequest.WaybillApplyPrintCheckRequest obj1 = new WlbWaybillIPrintRequest.WaybillApplyPrintCheckRequest();
obj1.setCpCode("HTKY");
List<WlbWaybillIPrintRequest.PrintCheckInfo> list3 = new ArrayList<WlbWaybillIPrintRequest.PrintCheckInfo>();
WlbWaybillIPrintRequest.PrintCheckInfo obj4 = new WlbWaybillIPrintRequest.PrintCheckInfo();
list3.add(obj4);
WlbWaybillIPrintRequest.WaybillAddress obj6 = new WlbWaybillIPrintRequest.WaybillAddress();
obj6.setAddressDetail("朝阳路高井,财满街,财经中心9号楼21单元6013");
obj6.setArea("朝阳区");
obj6.setCity("北京市");
obj6.setDivisionId(123L);
obj6.setProvince("北京");
obj6.setTown("八里庄");
list5.setConsigneeAddress(obj6);
obj4.setConsigneeBranchCode("12321");
obj4.setConsigneeBranchName("一网点");
obj4.setConsigneeName("张三");
obj4.setConsigneePhone("13264528362");
List<WlbWaybillIPrintRequest.LogisticsService> list9 = new ArrayList<WlbWaybillIPrintRequest.LogisticsService>();
WlbWaybillIPrintRequest.LogisticsService obj10 = new WlbWaybillIPrintRequest.LogisticsService();
list9.add(obj10);
obj10.setServiceCode("SVC-DELIVERY-ENV");
obj10.setServiceValue4Json("{ \"value\": \"100.00\",\"currency\": \"CNY\",\"ensure_type\": \"0\"}");
list7.setLogisticsServiceList(list9);
obj4.setPackageCenterCode("123456");
obj4.setPackageCenterName("浙江杭州");
obj4.setPrintConfig("DSFASFDASFDSAFDSAFA");
obj4.setProductType("STANDARD_EXPRESS");
obj4.setSendName("李四");
obj4.setSendPhone("12312312311");
WlbWaybillIPrintRequest.WaybillAddress obj12 = new WlbWaybillIPrintRequest.WaybillAddress();
obj12.setAddressDetail("朝阳路高井,财满街,财经中心9号楼21单元6013");
obj12.setArea("朝阳区");
obj12.setCity("北京市");
obj12.setDivisionId(123L);
obj12.setProvince("北京");
obj12.setTown("八里庄");
list11.setShippingAddress(obj12);
obj4.setShippingBranchCode("2323");
obj4.setShippingBranchName("二网点");
obj4.setShortAddress("余杭");
obj4.setRealUserId(123L);
obj4.setVolume(123L);
obj4.setWaybillCode("132121");
obj4.setWeight(123L);
obj1.setPrintCheckInfoCols(list3);
req.setWaybillApplyPrintCheckRequest(obj1);
WlbWaybillIPrintResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
WlbWaybillIPrintRequest req = new WlbWaybillIPrintRequest();
WlbWaybillIPrintRequest.WaybillApplyPrintCheckRequestDomain obj1 = new WlbWaybillIPrintRequest.WaybillApplyPrintCheckRequestDomain();
obj1.CpCode = "HTKY";
List<WlbWaybillIPrintRequest.PrintCheckInfoDomain> list3 = new List<WlbWaybillIPrintRequest.PrintCheckInfoDomain>();
WlbWaybillIPrintRequest.PrintCheckInfoDomain obj4 = new WlbWaybillIPrintRequest.PrintCheckInfoDomain();
list3.Add(obj4);
WlbWaybillIPrintRequest.WaybillAddressDomain obj5 = new WlbWaybillIPrintRequest.WaybillAddressDomain();
obj5.AddressDetail = "朝阳路高井,财满街,财经中心9号楼21单元6013";
obj5.Area = "朝阳区";
obj5.City = "北京市";
obj5.DivisionId = 123L;
obj5.Province = "北京";
obj5.Town = "八里庄";
obj4.ConsigneeAddress= obj5;
obj4.ConsigneeBranchCode = "12321";
obj4.ConsigneeBranchName = "一网点";
obj4.ConsigneeName = "张三";
obj4.ConsigneePhone = "13264528362";
List<WlbWaybillIPrintRequest.LogisticsServiceDomain> list7 = new List<WlbWaybillIPrintRequest.LogisticsServiceDomain>();
WlbWaybillIPrintRequest.LogisticsServiceDomain obj8 = new WlbWaybillIPrintRequest.LogisticsServiceDomain();
list7.Add(obj8);
obj8.ServiceCode = "SVC-DELIVERY-ENV";
obj8.ServiceValue4Json = "{ \"value\": \"100.00\",\"currency\": \"CNY\",\"ensure_type\": \"0\"}";
obj4.LogisticsServiceList= list7;
obj4.PackageCenterCode = "123456";
obj4.PackageCenterName = "浙江杭州";
obj4.PrintConfig = "DSFASFDASFDSAFDSAFA";
obj4.ProductType = "STANDARD_EXPRESS";
obj4.SendName = "李四";
obj4.SendPhone = "12312312311";
WlbWaybillIPrintRequest.WaybillAddressDomain obj9 = new WlbWaybillIPrintRequest.WaybillAddressDomain();
obj9.AddressDetail = "朝阳路高井,财满街,财经中心9号楼21单元6013";
obj9.Area = "朝阳区";
obj9.City = "北京市";
obj9.DivisionId = 123L;
obj9.Province = "北京";
obj9.Town = "八里庄";
obj4.ShippingAddress= obj9;
obj4.ShippingBranchCode = "2323";
obj4.ShippingBranchName = "二网点";
obj4.ShortAddress = "余杭";
obj4.RealUserId = 123L;
obj4.Volume = 123L;
obj4.WaybillCode = "132121";
obj4.Weight = 123L;
obj1.PrintCheckInfoCols= list3;
req.WaybillApplyPrintCheckRequest_ = obj1;
WlbWaybillIPrintResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new WlbWaybillIPrintRequest;
$waybill_apply_print_check_request = new WaybillApplyPrintCheckRequest;
$waybill_apply_print_check_request->cp_code="HTKY";
$print_check_info_cols = new PrintCheckInfo;
$consignee_address = new WaybillAddress;
$consignee_address->address_detail="朝阳路高井,财满街,财经中心9号楼21单元6013";
$consignee_address->area="朝阳区";
$consignee_address->city="北京市";
$consignee_address->division_id="123";
$consignee_address->province="北京";
$consignee_address->town="八里庄";
$print_check_info_cols->consignee_address = $consignee_address;
$print_check_info_cols->consignee_branch_code="12321";
$print_check_info_cols->consignee_branch_name="一网点";
$print_check_info_cols->consignee_name="张三";
$print_check_info_cols->consignee_phone="13264528362";
$logistics_service_list = new LogisticsService;
$logistics_service_list->service_code="SVC-DELIVERY-ENV";
$logistics_service_list->service_value4_json="{ \"value\": \"100.00\",\"currency\": \"CNY\",\"ensure_type\": \"0\"}";
$print_check_info_cols->logistics_service_list = $logistics_service_list;
$print_check_info_cols->package_center_code="123456";
$print_check_info_cols->package_center_name="浙江杭州";
$print_check_info_cols->print_config="DSFASFDASFDSAFDSAFA";
$print_check_info_cols->product_type="STANDARD_EXPRESS";
$print_check_info_cols->send_name="李四";
$print_check_info_cols->send_phone="12312312311";
$shipping_address = new WaybillAddress;
$shipping_address->address_detail="朝阳路高井,财满街,财经中心9号楼21单元6013";
$shipping_address->area="朝阳区";
$shipping_address->city="北京市";
$shipping_address->division_id="123";
$shipping_address->province="北京";
$shipping_address->town="八里庄";
$print_check_info_cols->shipping_address = $shipping_address;
$print_check_info_cols->shipping_branch_code="2323";
$print_check_info_cols->shipping_branch_name="二网点";
$print_check_info_cols->short_address="余杭";
$print_check_info_cols->real_user_id="123";
$print_check_info_cols->volume="123";
$print_check_info_cols->waybill_code="132121";
$print_check_info_cols->weight="123";
$waybill_apply_print_check_request->print_check_info_cols = $print_check_info_cols;
$req->setWaybillApplyPrintCheckRequest(json_encode($waybill_apply_print_check_request));
$resp = $c->execute($req, $sessionKey);
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.wlb.waybill.i.print' \
-d 'partner_id=apidoc' \
-d 'session=1ada94b9-3f36-4378-a0a6-cbbfd27cc57b' \
-d 'sign=55CFBB19A0BC09CFEAEA249CABB6D690' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+16%3A40%3A47' \
-d 'v=2.0' \
-d 'waybill_apply_print_check_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.WlbWaybillIPrintRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.waybill_apply_print_check_request=""
try:
resp= req.getResponse(sessionkey)
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.wlb.waybill.i.print");
add_param(pRequest,"waybill_apply_print_check_request","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,sessionKey);
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.wlb.waybill.i.print', {
'waybill_apply_print_check_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})