TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpLogisticsSellerSendRequest req = new AlibabaAscpLogisticsSellerSendRequest();
req.setDeliveryMobile("15617177451");
req.setSenderId(123456L);
req.setFeature("identCode=tid:aaa,bbb;machineCode=tid2:aaa;retailStoreId=12345;retailStoreType=STORE");
req.setTid("123456789");
req.setSubTid("1,2,3");
req.setDeliveryName("李明");
req.setCancelId(123L);
req.setMode("A");
AlibabaAscpLogisticsSellerSendResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAscpLogisticsSellerSendRequest req = new AlibabaAscpLogisticsSellerSendRequest();
req.DeliveryMobile = "15617177451";
req.SenderId = 123456L;
req.Feature = "identCode=tid:aaa,bbb;machineCode=tid2:aaa;retailStoreId=12345;retailStoreType=STORE";
req.Tid = "123456789";
req.SubTid = "1,2,3";
req.DeliveryName = "李明";
req.CancelId = 123L;
req.Mode = "A";
AlibabaAscpLogisticsSellerSendResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAscpLogisticsSellerSendRequest;
$req->setDeliveryMobile("15617177451");
$req->setSenderId("123456");
$req->setFeature("identCode=tid:aaa,bbb;machineCode=tid2:aaa;retailStoreId=12345;retailStoreType=STORE");
$req->setTid("123456789");
$req->setSubTid("1,2,3");
$req->setDeliveryName("李明");
$req->setCancelId("123");
$req->setMode("A");
$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=alibaba.ascp.logistics.seller.send' \
-d 'partner_id=apidoc' \
-d 'session=3bf4a4ce-784b-41c2-8119-7a3fa8d801aa' \
-d 'sign=E7F2DF16FC5451D1F8CA9A27B49C036C' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+18%3A21%3A43' \
-d 'v=2.0' \
-d 'cancel_id=123' \
-d 'delivery_mobile=15617177451' \
-d 'delivery_name=%E6%9D%8E%E6%98%8E' \
-d 'feature=identCode%3Dtid%3Aaaa%2Cbbb%3BmachineCode%3Dtid2%3Aaaa%3BretailStoreId%3D12345%3BretailStoreType%3DSTORE' \
-d 'mode=A' \
-d 'sender_id=123456' \
-d 'sub_tid=1%2C2%2C3' \
-d 'tid=123456789'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAscpLogisticsSellerSendRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.delivery_mobile="15617177451"
req.sender_id=123456
req.feature="identCode=tid:aaa,bbb;machineCode=tid2:aaa;retailStoreId=12345;retailStoreType=STORE"
req.tid="123456789"
req.sub_tid="1,2,3"
req.delivery_name="李明"
req.cancel_id=123
req.mode="A"
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,"alibaba.ascp.logistics.seller.send");
add_param(pRequest,"delivery_mobile","15617177451");
add_param(pRequest,"sender_id","123456");
add_param(pRequest,"feature","identCode=tid:aaa,bbb;machineCode=tid2:aaa;retailStoreId=12345;retailStoreType=STORE");
add_param(pRequest,"tid","123456789");
add_param(pRequest,"sub_tid","1,2,3");
add_param(pRequest,"delivery_name","李明");
add_param(pRequest,"cancel_id","123");
add_param(pRequest,"mode","A");
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('alibaba.ascp.logistics.seller.send', {
'delivery_mobile':'15617177451',
'sender_id':'123456',
'feature':'identCode=tid:aaa,bbb;machineCode=tid2:aaa;retailStoreId=12345;retailStoreType=STORE',
'tid':'123456789',
'sub_tid':'1,2,3',
'delivery_name':'李明',
'cancel_id':'123',
'mode':'A'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})