TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthWechatWaybillGetRequest req = new AlibabaAlihealthWechatWaybillGetRequest();
AlibabaAlihealthWechatWaybillGetRequest.WaybillCreateRequest obj1 = new AlibabaAlihealthWechatWaybillGetRequest.WaybillCreateRequest();
obj1.setDeliveryId("ZTO");
obj1.setSupplierId(1000111L);
obj1.setSiteCode("123456");
obj1.setPackageId("123456");
AlibabaAlihealthWechatWaybillGetRequest.AddressDTO obj2 = new AlibabaAlihealthWechatWaybillGetRequest.AddressDTO();
obj2.setAddress("测试地址666");
obj2.setProvince("浙江省");
obj2.setCity("杭州市");
obj2.setStreet("五常街道");
obj2.setName("测试收件人");
obj2.setMobile("123456");
obj2.setCounty("余杭区");
obj1.setReceiver(obj2);
AlibabaAlihealthWechatWaybillGetRequest.AddressDTO obj3 = new AlibabaAlihealthWechatWaybillGetRequest.AddressDTO();
obj3.setAddress("测试地址666");
obj3.setProvince("浙江省");
obj3.setCity("杭州市");
obj3.setStreet("五常街道");
obj3.setName("测试收件人");
obj3.setMobile("123456");
obj3.setCounty("余杭区");
obj1.setSender(obj3);
List<AlibabaAlihealthWechatWaybillGetRequest.OrderDTO> list5 = new ArrayList<AlibabaAlihealthWechatWaybillGetRequest.OrderDTO>();
AlibabaAlihealthWechatWaybillGetRequest.OrderDTO obj6 = new AlibabaAlihealthWechatWaybillGetRequest.OrderDTO();
list5.add(obj6);
obj6.setMainBizOrderId(123456L);
obj6.setMainShipOrderId(123456L);
obj1.setOrderList(list5);
obj1.setShopId("123456");
obj1.setExtendInfo("{}");
obj1.setEwaybillAcctId("123456");
req.setWaybillCreateRequest(obj1);
AlibabaAlihealthWechatWaybillGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthWechatWaybillGetRequest req = new AlibabaAlihealthWechatWaybillGetRequest();
AlibabaAlihealthWechatWaybillGetRequest.WaybillCreateRequestDomain obj1 = new AlibabaAlihealthWechatWaybillGetRequest.WaybillCreateRequestDomain();
obj1.DeliveryId = "ZTO";
obj1.SupplierId = 1000111L;
obj1.SiteCode = "123456";
obj1.PackageId = "123456";
AlibabaAlihealthWechatWaybillGetRequest.AddressDTODomain obj2 = new AlibabaAlihealthWechatWaybillGetRequest.AddressDTODomain();
obj2.Address = "测试地址666";
obj2.Province = "浙江省";
obj2.City = "杭州市";
obj2.Street = "五常街道";
obj2.Name = "测试收件人";
obj2.Mobile = "123456";
obj2.County = "余杭区";
obj1.Receiver= obj2;
AlibabaAlihealthWechatWaybillGetRequest.AddressDTODomain obj3 = new AlibabaAlihealthWechatWaybillGetRequest.AddressDTODomain();
obj3.Address = "测试地址666";
obj3.Province = "浙江省";
obj3.City = "杭州市";
obj3.Street = "五常街道";
obj3.Name = "测试收件人";
obj3.Mobile = "123456";
obj3.County = "余杭区";
obj1.Sender= obj3;
List<AlibabaAlihealthWechatWaybillGetRequest.OrderDTODomain> list5 = new List<AlibabaAlihealthWechatWaybillGetRequest.OrderDTODomain>();
AlibabaAlihealthWechatWaybillGetRequest.OrderDTODomain obj6 = new AlibabaAlihealthWechatWaybillGetRequest.OrderDTODomain();
list5.Add(obj6);
obj6.MainBizOrderId = 123456L;
obj6.MainShipOrderId = 123456L;
obj1.OrderList= list5;
obj1.ShopId = "123456";
obj1.ExtendInfo = "{}";
obj1.EwaybillAcctId = "123456";
req.WaybillCreateRequest_ = obj1;
AlibabaAlihealthWechatWaybillGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthWechatWaybillGetRequest;
$waybill_create_request = new WaybillCreateRequest;
$waybill_create_request->delivery_id="ZTO";
$waybill_create_request->supplier_id="1000111";
$waybill_create_request->site_code="123456";
$waybill_create_request->package_id="123456";
$receiver = new AddressDTO;
$receiver->address="测试地址666";
$receiver->province="浙江省";
$receiver->city="杭州市";
$receiver->street="五常街道";
$receiver->name="测试收件人";
$receiver->mobile="123456";
$receiver->county="余杭区";
$waybill_create_request->receiver = $receiver;
$sender = new AddressDTO;
$sender->address="测试地址666";
$sender->province="浙江省";
$sender->city="杭州市";
$sender->street="五常街道";
$sender->name="测试收件人";
$sender->mobile="123456";
$sender->county="余杭区";
$waybill_create_request->sender = $sender;
$order_list = new OrderDTO;
$order_list->main_biz_order_id="123456";
$order_list->main_ship_order_id="123456";
$waybill_create_request->order_list = $order_list;
$waybill_create_request->shop_id="123456";
$waybill_create_request->extend_info="{}";
$waybill_create_request->ewaybill_acct_id="123456";
$req->setWaybillCreateRequest(json_encode($waybill_create_request));
$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=alibaba.alihealth.wechat.waybill.get' \
-d 'partner_id=apidoc' \
-d 'sign=F369E1FC4EA86FE0A0D80158E86A05A2' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-02-02+13%3A13%3A21' \
-d 'v=2.0' \
-d 'waybill_create_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthWechatWaybillGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.waybill_create_request="数据结构示例JSON格式"
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,"alibaba.alihealth.wechat.waybill.get");
add_param(pRequest,"waybill_create_request","数据结构JSON示例");
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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.alihealth.wechat.waybill.get', {
'waybill_create_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})