TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallHkDistributeLogisticsDetailSendRequest req = new TmallHkDistributeLogisticsDetailSendRequest();
TmallHkDistributeLogisticsDetailSendRequest.LogisticsDetailRequest obj1 = new TmallHkDistributeLogisticsDetailSendRequest.LogisticsDetailRequest();
obj1.setOrderId(4021027489068554007L);
obj1.setLogisticsDetailCode("LH_HO_IN_SUCCESS");
obj1.setLogisticsDetailTime(StringUtils.parseDateTime("2024-08-28 13:21:54"));
req.setLogisticsDetailRequest(obj1);
TmallHkDistributeLogisticsDetailSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallHkDistributeLogisticsDetailSendRequest req = new TmallHkDistributeLogisticsDetailSendRequest();
TmallHkDistributeLogisticsDetailSendRequest.LogisticsDetailRequestDomain obj1 = new TmallHkDistributeLogisticsDetailSendRequest.LogisticsDetailRequestDomain();
obj1.OrderId = 4021027489068554007L;
obj1.LogisticsDetailCode = "LH_HO_IN_SUCCESS";
obj1.LogisticsDetailTime = DateTime.Parse(2024-08-28 13:21:54");
req.LogisticsDetailRequest_ = obj1;
TmallHkDistributeLogisticsDetailSendResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallHkDistributeLogisticsDetailSendRequest;
$logistics_detail_request = new LogisticsDetailRequest;
$logistics_detail_request->order_id="4021027489068554007";
$logistics_detail_request->logistics_detail_code="LH_HO_IN_SUCCESS";
$logistics_detail_request->logistics_detail_time="2024-08-28 13:21:54";
$req->setLogisticsDetailRequest(json_encode($logistics_detail_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=tmall.hk.distribute.logistics.detail.send' \
-d 'partner_id=apidoc' \
-d 'sign=845043681C05307F96B20F6A24393C31' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+16%3A43%3A30' \
-d 'v=2.0' \
-d 'logistics_detail_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallHkDistributeLogisticsDetailSendRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.logistics_detail_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,"tmall.hk.distribute.logistics.detail.send");
add_param(pRequest,"logistics_detail_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',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('tmall.hk.distribute.logistics.detail.send', {
'logistics_detail_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})