TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleYushiTongshouOrderPerformRequest req = new AlibabaIdleYushiTongshouOrderPerformRequest();
AlibabaIdleYushiTongshouOrderPerformRequest.TenderOrderSynDTO obj1 = new AlibabaIdleYushiTongshouOrderPerformRequest.TenderOrderSynDTO();
obj1.setOrderSubStatus("1080");
obj1.setBizOrderId("245874");
obj1.setOrderStatus("108");
AlibabaIdleYushiTongshouOrderPerformRequest.HashMap obj2 = new AlibabaIdleYushiTongshouOrderPerformRequest.HashMap();
obj2.setBuyerCloseReason("取消");
obj2.setBuyerFullAddress("浙江省杭州市余杭区阿里巴巴西溪园区");
obj2.setBuyerCountry("中国");
obj2.setBuyerProvince("浙江省");
obj2.setBuyerCity("杭州市");
obj2.setBuyerArea("余杭区");
obj2.setBuyerDetailAddress("余杭区阿里巴巴西溪园区");
obj2.setBuyerPhone("11111111111");
obj2.setBuyerShowName("测试收件人");
obj2.setBuyerTown("五常街道");
obj1.setAttribute(obj2);
req.setParam0(obj1);
AlibabaIdleYushiTongshouOrderPerformResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIdleYushiTongshouOrderPerformRequest req = new AlibabaIdleYushiTongshouOrderPerformRequest();
AlibabaIdleYushiTongshouOrderPerformRequest.TenderOrderSynDTODomain obj1 = new AlibabaIdleYushiTongshouOrderPerformRequest.TenderOrderSynDTODomain();
obj1.OrderSubStatus = "1080";
obj1.BizOrderId = "245874";
obj1.OrderStatus = "108";
AlibabaIdleYushiTongshouOrderPerformRequest.HashMapDomain obj2 = new AlibabaIdleYushiTongshouOrderPerformRequest.HashMapDomain();
obj2.BuyerCloseReason = "取消";
obj2.BuyerFullAddress = "浙江省杭州市余杭区阿里巴巴西溪园区";
obj2.BuyerCountry = "中国";
obj2.BuyerProvince = "浙江省";
obj2.BuyerCity = "杭州市";
obj2.BuyerArea = "余杭区";
obj2.BuyerDetailAddress = "余杭区阿里巴巴西溪园区";
obj2.BuyerPhone = "11111111111";
obj2.BuyerShowName = "测试收件人";
obj2.BuyerTown = "五常街道";
obj1.Attribute= obj2;
req.Param0_ = obj1;
AlibabaIdleYushiTongshouOrderPerformResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIdleYushiTongshouOrderPerformRequest;
$param0 = new TenderOrderSynDTO;
$param0->order_sub_status="1080";
$param0->biz_order_id="245874";
$param0->order_status="108";
$attribute = new HashMap;
$attribute->buyer_close_reason="取消";
$attribute->buyer_full_address="浙江省杭州市余杭区阿里巴巴西溪园区";
$attribute->buyer_country="中国";
$attribute->buyer_province="浙江省";
$attribute->buyer_city="杭州市";
$attribute->buyer_area="余杭区";
$attribute->buyer_detail_address="余杭区阿里巴巴西溪园区";
$attribute->buyer_phone="11111111111";
$attribute->buyer_show_name="测试收件人";
$attribute->buyer_town="五常街道";
$param0->attribute = $attribute;
$req->setParam0(json_encode($param0));
$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.idle.yushi.tongshou.order.perform' \
-d 'partner_id=apidoc' \
-d 'session=5d99a315-f309-4505-b534-f5eb77632690' \
-d 'sign=79EED8DC896B1C54BC20CFA459D3CDF3' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+14%3A54%3A23' \
-d 'v=2.0' \
-d 'param0=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIdleYushiTongshouOrderPerformRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param0="数据结构示例JSON格式"
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.idle.yushi.tongshou.order.perform");
add_param(pRequest,"param0","数据结构JSON示例");
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.idle.yushi.tongshou.order.perform', {
'param0':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})