TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PaimaiPmpAuctionCreateRequest req = new PaimaiPmpAuctionCreateRequest();
PaimaiPmpAuctionCreateRequest.TopCreateAuctionRequest obj1 = new PaimaiPmpAuctionCreateRequest.TopCreateAuctionRequest();
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");
PaimaiPmpAuctionCreateRequest.TopVideo obj2 = new PaimaiPmpAuctionCreateRequest.TopVideo();
obj2.setVideoId("111");
obj2.setVideoUrl("http://video.alicdn.com/video/111.mp4");
obj2.setVideoCoverUrl("http://video.alicdn.com/video/111.jpg");
obj1.setDetailVideo(obj2);
PaimaiPmpAuctionCreateRequest.TopVideo obj3 = new PaimaiPmpAuctionCreateRequest.TopVideo();
obj3.setVideoId("111");
obj3.setVideoUrl("http://video.alicdn.com/video/111.mp4");
obj3.setVideoCoverUrl("http://video.alicdn.com/video/111.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.setTopCreateAuctionRequest(obj1);
PaimaiPmpAuctionCreateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
PaimaiPmpAuctionCreateRequest req = new PaimaiPmpAuctionCreateRequest();
PaimaiPmpAuctionCreateRequest.TopCreateAuctionRequestDomain obj1 = new PaimaiPmpAuctionCreateRequest.TopCreateAuctionRequestDomain();
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";
PaimaiPmpAuctionCreateRequest.TopVideoDomain obj2 = new PaimaiPmpAuctionCreateRequest.TopVideoDomain();
obj2.VideoId = "111";
obj2.VideoUrl = "http://video.alicdn.com/video/111.mp4";
obj2.VideoCoverUrl = "http://video.alicdn.com/video/111.jpg";
obj1.DetailVideo= obj2;
PaimaiPmpAuctionCreateRequest.TopVideoDomain obj3 = new PaimaiPmpAuctionCreateRequest.TopVideoDomain();
obj3.VideoId = "111";
obj3.VideoUrl = "http://video.alicdn.com/video/111.mp4";
obj3.VideoCoverUrl = "http://video.alicdn.com/video/111.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.TopCreateAuctionRequest_ = obj1;
PaimaiPmpAuctionCreateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new PaimaiPmpAuctionCreateRequest;
$top_create_auction_request = new TopCreateAuctionRequest;
$top_create_auction_request->auction_type="fpo";
$top_create_auction_request->title="测试拍品请不要拍";
$top_create_auction_request->short_title="测试拍品";
$top_create_auction_request->desc="测试拍品描述";
$top_create_auction_request->category_id="124852006";
$top_create_auction_request->front_cat_id="53846002";
$top_create_auction_request->front_child_cat_id="206101402";
$top_create_auction_request->prov="110000";
$top_create_auction_request->city="110000";
$top_create_auction_request->quantity="10";
$top_create_auction_request->c_code="123456789";
$top_create_auction_request->fixed_price="10000";
$top_create_auction_request->pic_urls="[O1CN01gDQAwu1af5pJ5A3F1_!!0-paimai.jpg, O1CN01gDQAwu1af5pJ5A3F1_!!0-paimai.jpg]";
$detail_video = new TopVideo;
$detail_video->video_id="111";
$detail_video->video_url="http://video.alicdn.com/video/111.mp4";
$detail_video->video_cover_url="http://video.alicdn.com/video/111.jpg";
$top_create_auction_request->detail_video = $detail_video;
$main_video = new TopVideo;
$main_video->video_id="111";
$main_video->video_url="http://video.alicdn.com/video/111.mp4";
$main_video->video_cover_url="http://video.alicdn.com/video/111.jpg";
$top_create_auction_request->main_video = $main_video;
$top_create_auction_request->properties="139248429:4538355;157118126:1072816630";
$top_create_auction_request->input_pids="8418336, 46742100";
$top_create_auction_request->input_str="耐克;耐克系列, 科比系列;2K5";
$top_create_auction_request->tag_ids="7";
$top_create_auction_request->ext_params="{\"extendServiceForms\": [{ \"code\": \"SELLER_RULE\",\"version\": \"a336db143159cc056b2bc6f335d1cfcc\", \"properties\":[{\"code\": \"发货信息\",\"value\": \"24小时\"}, {\"code\":\"包邮\", \"value\": \"包邮\"}]}]}";
$req->setTopCreateAuctionRequest(json_encode($top_create_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.create' \
-d 'partner_id=apidoc' \
-d 'session=8e68218c-e68f-49e6-ad13-db84389191fa' \
-d 'sign=25599DD687A0D03DF8720A2249AC1571' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-08-25+02%3A37%3A49' \
-d 'v=2.0' \
-d 'top_create_auction_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.PaimaiPmpAuctionCreateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.top_create_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.create");
add_param(pRequest,"top_create_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.create', {
'top_create_auction_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})