TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PaimaiPmpAuctionUpdateRequest req = new PaimaiPmpAuctionUpdateRequest();
PaimaiPmpAuctionUpdateRequest.TopUpdateAuctionRequest obj1 = new PaimaiPmpAuctionUpdateRequest.TopUpdateAuctionRequest();
obj1.setItemId(3L);
obj1.setAuctionType("fpo");
obj1.setTitle("测试拍品请不要拍");
obj1.setShortTitle("测试拍品");
obj1.setDesc("测试拍品描述");
obj1.setCategoryId(124852006L);
obj1.setFrontCatId(53846002L);
obj1.setFrontChildCatId(206101402L);
obj1.setProv("110000");
obj1.setCity("110000");
obj1.setQuantity(10L);
obj1.setCCode("123456789");
obj1.setFixedPrice(10000L);
obj1.setPicUrls("O1CN01gDQAwu1af5pJ5A3F1_!!0-paimai.jpg, O1CN01gDQAwu1af5pJ5A3F1_!!0-paimai.jpg");
PaimaiPmpAuctionUpdateRequest.TopVideo obj2 = new PaimaiPmpAuctionUpdateRequest.TopVideo();
obj2.setVideoId("972880816062509");
obj2.setVideoUrl("//cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/972880816062509.mp4");
obj2.setVideoCoverUrl("https://img.alicdn.com/imgextra/i4/4204773894/O1CN01LhZhpv80CfG3thAe_!!4204773894-0-qnaigc.jpg");
obj1.setDetailVideo(obj2);
PaimaiPmpAuctionUpdateRequest.TopVideo obj3 = new PaimaiPmpAuctionUpdateRequest.TopVideo();
obj3.setVideoId("972880816062509");
obj3.setVideoUrl("//cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/972880816062509.mp4");
obj3.setVideoCoverUrl("https://img.alicdn.com/imgextra/i4/4204773894/O1CN01LhZhpv80CfG3thAe_!!4204773894-0-qnaigc.jpg");
obj1.setMainVideo(obj3);
obj1.setProperties("139248429:4538355;157118126:1072816630");
obj1.setInputPids("8418336, 46742100");
obj1.setInputStr("耐克;耐克系列, 科比系列;2K5");
obj1.setTagIds("7");
obj1.setExtParams("{\"extendServiceForms\": [{ \"code\": \"SELLER_RULE\",\"version\": \"a336db143159cc056b2bc6f335d1cfcc\", \"properties\":[{\"code\": \"发货信息\",\"value\": \"24小时\"}, {\"code\":\"包邮\", \"value\": \"包邮\"}]}]}");
req.setTopUpdateAuctionRequest(obj1);
PaimaiPmpAuctionUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
PaimaiPmpAuctionUpdateRequest req = new PaimaiPmpAuctionUpdateRequest();
PaimaiPmpAuctionUpdateRequest.TopUpdateAuctionRequestDomain obj1 = new PaimaiPmpAuctionUpdateRequest.TopUpdateAuctionRequestDomain();
obj1.ItemId = 3L;
obj1.AuctionType = "fpo";
obj1.Title = "测试拍品请不要拍";
obj1.ShortTitle = "测试拍品";
obj1.Desc = "测试拍品描述";
obj1.CategoryId = 124852006L;
obj1.FrontCatId = 53846002L;
obj1.FrontChildCatId = 206101402L;
obj1.Prov = "110000";
obj1.City = "110000";
obj1.Quantity = 10L;
obj1.CCode = "123456789";
obj1.FixedPrice = 10000L;
obj1.PicUrls = "O1CN01gDQAwu1af5pJ5A3F1_!!0-paimai.jpg, O1CN01gDQAwu1af5pJ5A3F1_!!0-paimai.jpg";
PaimaiPmpAuctionUpdateRequest.TopVideoDomain obj2 = new PaimaiPmpAuctionUpdateRequest.TopVideoDomain();
obj2.VideoId = "972880816062509";
obj2.VideoUrl = "//cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/972880816062509.mp4";
obj2.VideoCoverUrl = "https://img.alicdn.com/imgextra/i4/4204773894/O1CN01LhZhpv80CfG3thAe_!!4204773894-0-qnaigc.jpg";
obj1.DetailVideo= obj2;
PaimaiPmpAuctionUpdateRequest.TopVideoDomain obj3 = new PaimaiPmpAuctionUpdateRequest.TopVideoDomain();
obj3.VideoId = "972880816062509";
obj3.VideoUrl = "//cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/972880816062509.mp4";
obj3.VideoCoverUrl = "https://img.alicdn.com/imgextra/i4/4204773894/O1CN01LhZhpv80CfG3thAe_!!4204773894-0-qnaigc.jpg";
obj1.MainVideo= obj3;
obj1.Properties = "139248429:4538355;157118126:1072816630";
obj1.InputPids = "8418336, 46742100";
obj1.InputStr = "耐克;耐克系列, 科比系列;2K5";
obj1.TagIds = "7";
obj1.ExtParams = "{\"extendServiceForms\": [{ \"code\": \"SELLER_RULE\",\"version\": \"a336db143159cc056b2bc6f335d1cfcc\", \"properties\":[{\"code\": \"发货信息\",\"value\": \"24小时\"}, {\"code\":\"包邮\", \"value\": \"包邮\"}]}]}";
req.TopUpdateAuctionRequest_ = obj1;
PaimaiPmpAuctionUpdateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new PaimaiPmpAuctionUpdateRequest;
$top_update_auction_request = new TopUpdateAuctionRequest;
$top_update_auction_request->item_id="3";
$top_update_auction_request->auction_type="fpo";
$top_update_auction_request->title="测试拍品请不要拍";
$top_update_auction_request->short_title="测试拍品";
$top_update_auction_request->desc="测试拍品描述";
$top_update_auction_request->category_id="124852006";
$top_update_auction_request->front_cat_id="53846002";
$top_update_auction_request->front_child_cat_id="206101402";
$top_update_auction_request->prov="110000";
$top_update_auction_request->city="110000";
$top_update_auction_request->quantity="10";
$top_update_auction_request->c_code="123456789";
$top_update_auction_request->fixed_price="10000";
$top_update_auction_request->pic_urls="[O1CN01gDQAwu1af5pJ5A3F1_!!0-paimai.jpg, O1CN01gDQAwu1af5pJ5A3F1_!!0-paimai.jpg]";
$detail_video = new TopVideo;
$detail_video->video_id="972880816062509";
$detail_video->video_url="//cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/972880816062509.mp4";
$detail_video->video_cover_url="https://img.alicdn.com/imgextra/i4/4204773894/O1CN01LhZhpv80CfG3thAe_!!4204773894-0-qnaigc.jpg";
$top_update_auction_request->detail_video = $detail_video;
$main_video = new TopVideo;
$main_video->video_id="972880816062509";
$main_video->video_url="//cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/972880816062509.mp4";
$main_video->video_cover_url="https://img.alicdn.com/imgextra/i4/4204773894/O1CN01LhZhpv80CfG3thAe_!!4204773894-0-qnaigc.jpg";
$top_update_auction_request->main_video = $main_video;
$top_update_auction_request->properties="139248429:4538355;157118126:1072816630";
$top_update_auction_request->input_pids="8418336, 46742100";
$top_update_auction_request->input_str="耐克;耐克系列, 科比系列;2K5";
$top_update_auction_request->tag_ids="7";
$top_update_auction_request->ext_params="{\"extendServiceForms\": [{ \"code\": \"SELLER_RULE\",\"version\": \"a336db143159cc056b2bc6f335d1cfcc\", \"properties\":[{\"code\": \"发货信息\",\"value\": \"24小时\"}, {\"code\":\"包邮\", \"value\": \"包邮\"}]}]}";
$req->setTopUpdateAuctionRequest(json_encode($top_update_auction_request));
$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=taobao.paimai.pmp.auction.update' \
-d 'partner_id=apidoc' \
-d 'session=cb55d344-53f7-423a-8e05-b12fbe1e1e00' \
-d 'sign=98F0CF2673A046ECDDE1A81971220D4B' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-08-25+02%3A37%3A50' \
-d 'v=2.0' \
-d 'top_update_auction_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.PaimaiPmpAuctionUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.top_update_auction_request="数据结构示例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,"taobao.paimai.pmp.auction.update");
add_param(pRequest,"top_update_auction_request","数据结构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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.paimai.pmp.auction.update', {
'top_update_auction_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})