TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpIndustryEcologyDeliveryInstallInterceptRequest req = new AlibabaAscpIndustryEcologyDeliveryInstallInterceptRequest();
AlibabaAscpIndustryEcologyDeliveryInstallInterceptRequest.WdsCollectDeliveryInterceptRequest obj1 = new AlibabaAscpIndustryEcologyDeliveryInstallInterceptRequest.WdsCollectDeliveryInterceptRequest();
obj1.setSellerOrderCode("123456");
obj1.setReason("拦截原因");
obj1.setContact("某某某");
obj1.setMobile("123");
obj1.setProvince("浙江省");
obj1.setCity("杭州市");
obj1.setArea("余杭区");
obj1.setAddress("五常街道xxx");
obj1.setMainUserId("121213121");
obj1.setSubUserId("121213121");
req.setWdsCollectDeliveryInterceptRequest(obj1);
AlibabaAscpIndustryEcologyDeliveryInstallInterceptResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAscpIndustryEcologyDeliveryInstallInterceptRequest req = new AlibabaAscpIndustryEcologyDeliveryInstallInterceptRequest();
AlibabaAscpIndustryEcologyDeliveryInstallInterceptRequest.WdsCollectDeliveryInterceptRequestDomain obj1 = new AlibabaAscpIndustryEcologyDeliveryInstallInterceptRequest.WdsCollectDeliveryInterceptRequestDomain();
obj1.SellerOrderCode = "123456";
obj1.Reason = "拦截原因";
obj1.Contact = "某某某";
obj1.Mobile = "123";
obj1.Province = "浙江省";
obj1.City = "杭州市";
obj1.Area = "余杭区";
obj1.Address = "五常街道xxx";
obj1.MainUserId = "121213121";
obj1.SubUserId = "121213121";
req.WdsCollectDeliveryInterceptRequest_ = obj1;
AlibabaAscpIndustryEcologyDeliveryInstallInterceptResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAscpIndustryEcologyDeliveryInstallInterceptRequest;
$wds_collect_delivery_intercept_request = new WdsCollectDeliveryInterceptRequest;
$wds_collect_delivery_intercept_request->seller_order_code="123456";
$wds_collect_delivery_intercept_request->reason="拦截原因";
$wds_collect_delivery_intercept_request->contact="某某某";
$wds_collect_delivery_intercept_request->mobile="123";
$wds_collect_delivery_intercept_request->province="浙江省";
$wds_collect_delivery_intercept_request->city="杭州市";
$wds_collect_delivery_intercept_request->area="余杭区";
$wds_collect_delivery_intercept_request->address="五常街道xxx";
$wds_collect_delivery_intercept_request->main_user_id="121213121";
$wds_collect_delivery_intercept_request->sub_user_id="121213121";
$req->setWdsCollectDeliveryInterceptRequest(json_encode($wds_collect_delivery_intercept_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.ascp.industry.ecology.delivery.install.intercept' \
-d 'partner_id=apidoc' \
-d 'sign=E45370CA4CCABB161E7E072D8CBE38E7' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-06-12+12%3A05%3A13' \
-d 'v=2.0' \
-d 'wds_collect_delivery_intercept_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAscpIndustryEcologyDeliveryInstallInterceptRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.wds_collect_delivery_intercept_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.ascp.industry.ecology.delivery.install.intercept");
add_param(pRequest,"wds_collect_delivery_intercept_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.ascp.industry.ecology.delivery.install.intercept', {
'wds_collect_delivery_intercept_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})