TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTcLogisticsDmsOrderTakeAbnormalNotifyRequest req = new AlibabaTcLogisticsDmsOrderTakeAbnormalNotifyRequest();
req.setOrderCode("TO7035094414");
req.setOutDelivererId("1689432");
req.setDelivererName("张三");
req.setDelivererPhone("13011112222");
req.setLongitude("116.307892");
req.setLatitude("40.039115");
req.setTakeAbnormalTime(StringUtils.parseDateTime("2021-10-01 10:00:00"));
req.setTakeAbnormalCause(9000L);
AlibabaTcLogisticsDmsOrderTakeAbnormalNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaTcLogisticsDmsOrderTakeAbnormalNotifyRequest req = new AlibabaTcLogisticsDmsOrderTakeAbnormalNotifyRequest();
req.OrderCode = "TO7035094414";
req.OutDelivererId = "1689432";
req.DelivererName = "张三";
req.DelivererPhone = "13011112222";
req.Longitude = "116.307892";
req.Latitude = "40.039115";
req.TakeAbnormalTime = DateTime.Parse("2021-10-01 10:00:00");
req.TakeAbnormalCause = 9000L;
AlibabaTcLogisticsDmsOrderTakeAbnormalNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaTcLogisticsDmsOrderTakeAbnormalNotifyRequest;
$req->setOrderCode("TO7035094414");
$req->setOutDelivererId("1689432");
$req->setDelivererName("张三");
$req->setDelivererPhone("13011112222");
$req->setLongitude("116.307892");
$req->setLatitude("40.039115");
$req->setTakeAbnormalTime("2021-10-01 10:00:00");
$req->setTakeAbnormalCause("9000");
$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.tc.logistics.dms.order.take.abnormal.notify' \
-d 'partner_id=apidoc' \
-d 'sign=4CBCC9BDB1334B19AE111473DF4139B9' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-30+14%3A20%3A07' \
-d 'v=2.0' \
-d 'deliverer_name=%E5%BC%A0%E4%B8%89' \
-d 'deliverer_phone=13011112222' \
-d 'latitude=40.039115' \
-d 'longitude=116.307892' \
-d 'order_code=TO7035094414' \
-d 'out_deliverer_id=1689432' \
-d 'take_abnormal_cause=9000' \
-d 'take_abnormal_time=2021-10-01+10%3A00%3A00'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaTcLogisticsDmsOrderTakeAbnormalNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.order_code="TO7035094414"
req.out_deliverer_id="1689432"
req.deliverer_name="张三"
req.deliverer_phone="13011112222"
req.longitude="116.307892"
req.latitude="40.039115"
req.take_abnormal_time="2021-10-01 10:00:00"
req.take_abnormal_cause=9000
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.tc.logistics.dms.order.take.abnormal.notify");
add_param(pRequest,"order_code","TO7035094414");
add_param(pRequest,"out_deliverer_id","1689432");
add_param(pRequest,"deliverer_name","张三");
add_param(pRequest,"deliverer_phone","13011112222");
add_param(pRequest,"longitude","116.307892");
add_param(pRequest,"latitude","40.039115");
add_param(pRequest,"take_abnormal_time","2021-10-01 10:00:00");
add_param(pRequest,"take_abnormal_cause","9000");
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('alibaba.tc.logistics.dms.order.take.abnormal.notify', {
'order_code':'TO7035094414',
'out_deliverer_id':'1689432',
'deliverer_name':'张三',
'deliverer_phone':'13011112222',
'longitude':'116.307892',
'latitude':'40.039115',
'take_abnormal_time':'2021-10-01 10:00:00',
'take_abnormal_cause':'9000'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})