TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest req = new AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest();
AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest.UnfixedPackagePriceParamDto obj1 = new AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest.UnfixedPackagePriceParamDto();
obj1.setSellerId("7BEA6B04134C2928EF4A7E527F204740");
obj1.setMessageId("1111111");
obj1.setProjectId("579550415746633728");
obj1.setPerformanceId("579550526350430208");
List<AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest.PriceStatusDto> list3 = new ArrayList<AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest.PriceStatusDto>();
AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest.PriceStatusDto obj4 = new AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest.PriceStatusDto();
list3.add(obj4);
obj4.setPriceId("579550918337499136");
obj4.setStatus(1L);
obj1.setUnfixedPackagePrices(list3);
req.setUnfixedpackagepriceParamDTO(obj1);
AlibabaDamaiBtoyunUpdateUnfixedpackagepriceResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest req = new AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest();
AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest.UnfixedPackagePriceParamDtoDomain obj1 = new AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest.UnfixedPackagePriceParamDtoDomain();
obj1.SellerId = "7BEA6B04134C2928EF4A7E527F204740";
obj1.MessageId = "1111111";
obj1.ProjectId = "579550415746633728";
obj1.PerformanceId = "579550526350430208";
List<AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest.PriceStatusDtoDomain> list3 = new List<AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest.PriceStatusDtoDomain>();
AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest.PriceStatusDtoDomain obj4 = new AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest.PriceStatusDtoDomain();
list3.Add(obj4);
obj4.PriceId = "579550918337499136";
obj4.Status = 1L;
obj1.UnfixedPackagePrices= list3;
req.UnfixedpackagepriceParamDTO_ = obj1;
AlibabaDamaiBtoyunUpdateUnfixedpackagepriceResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest;
$unfixedpackageprice_param_d_t_o = new UnfixedPackagePriceParamDto;
$unfixedpackageprice_param_d_t_o->seller_id="7BEA6B04134C2928EF4A7E527F204740";
$unfixedpackageprice_param_d_t_o->message_id="1111111";
$unfixedpackageprice_param_d_t_o->project_id="579550415746633728";
$unfixedpackageprice_param_d_t_o->performance_id="579550526350430208";
$unfixed_package_prices = new PriceStatusDto;
$unfixed_package_prices->price_id="579550918337499136";
$unfixed_package_prices->status="1";
$unfixedpackageprice_param_d_t_o->unfixed_package_prices = $unfixed_package_prices;
$req->setUnfixedpackagepriceParamDTO(json_encode($unfixedpackageprice_param_d_t_o));
$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.damai.btoyun.update.unfixedpackageprice' \
-d 'partner_id=apidoc' \
-d 'sign=BFB76CAD5730909851C8737FD380C5ED' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-27+22%3A14%3A24' \
-d 'v=2.0' \
-d 'unfixedpackageprice_param_d_t_o=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaDamaiBtoyunUpdateUnfixedpackagepriceRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.unfixedpackageprice_param_d_t_o=""
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.damai.btoyun.update.unfixedpackageprice");
add_param(pRequest,"unfixedpackageprice_param_d_t_o","数据结构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('alibaba.damai.btoyun.update.unfixedpackageprice', {
'unfixedpackageprice_param_d_t_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})