TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LogisticsExpressCourierRegionDeleteRequest req = new LogisticsExpressCourierRegionDeleteRequest();
LogisticsExpressCourierRegionDeleteRequest.CourierRegionDeleteRequest obj1 = new LogisticsExpressCourierRegionDeleteRequest.CourierRegionDeleteRequest();
obj1.setRequestTime(1689067417799L);
obj1.setRequestId("1689067417799");
obj1.setSupplierId("10000074832948");
obj1.setDeliveryCode("SF123");
obj1.setServiceType("1");
obj1.setRegionId("region_code001");
req.setCourierRegionDeleteRequest(obj1);
LogisticsExpressCourierRegionDeleteResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
LogisticsExpressCourierRegionDeleteRequest req = new LogisticsExpressCourierRegionDeleteRequest();
LogisticsExpressCourierRegionDeleteRequest.CourierRegionDeleteRequestDomain obj1 = new LogisticsExpressCourierRegionDeleteRequest.CourierRegionDeleteRequestDomain();
obj1.RequestTime = 1689067417799L;
obj1.RequestId = "1689067417799";
obj1.SupplierId = "10000074832948";
obj1.DeliveryCode = "SF123";
obj1.ServiceType = "1";
obj1.RegionId = "region_code001";
req.CourierRegionDeleteRequest_ = obj1;
LogisticsExpressCourierRegionDeleteResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new LogisticsExpressCourierRegionDeleteRequest;
$courier_region_delete_request = new CourierRegionDeleteRequest;
$courier_region_delete_request->request_time="1689067417799";
$courier_region_delete_request->request_id="1689067417799";
$courier_region_delete_request->supplier_id="10000074832948";
$courier_region_delete_request->delivery_code="SF123";
$courier_region_delete_request->service_type="1";
$courier_region_delete_request->region_id="region_code001";
$req->setCourierRegionDeleteRequest(json_encode($courier_region_delete_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=taobao.logistics.express.courier.region.delete' \
-d 'partner_id=apidoc' \
-d 'sign=69BE2F1D0A68450289AC8C7CA0A20B00' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+23%3A13%3A46' \
-d 'v=2.0' \
-d 'courier_region_delete_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.LogisticsExpressCourierRegionDeleteRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.courier_region_delete_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,"taobao.logistics.express.courier.region.delete");
add_param(pRequest,"courier_region_delete_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('taobao.logistics.express.courier.region.delete', {
'courier_region_delete_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})