TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AuctionZcAuctionDraftPublicRequest req = new AuctionZcAuctionDraftPublicRequest();
AuctionZcAuctionDraftPublicRequest.AddZcAuctionDo obj1 = new AuctionZcAuctionDraftPublicRequest.AddZcAuctionDo();
obj1.setAttachUrls("TB1FSY6XXXXXXX2XFXX.LpbFXXX");
obj1.setBuyerNubmer(1L);
obj1.setCategoryId(133422695L);
obj1.setComp(132L);
obj1.setConsultPrice(88800L);
obj1.setDescription("98新宝马X3");
obj1.setEnd(StringUtils.parseDateTime("2017-02-21 09:20:37"));
obj1.setFreezeAmount(2000L);
obj1.setIncreaseRange(1000L);
obj1.setIsBuyRestrictions(true);
obj1.setIsSupportLoans(false);
obj1.setItemNotice("拍卖须知");
obj1.setLinkMan("张三");
obj1.setLocation(120226L);
obj1.setMobilePhone("13534334***");
obj1.setMovieUrl("http://www.taobao.com");
obj1.setOutId(12324L);
obj1.setPicUrlList("i3/65753801/TB2gi0aXXXXXXalXXXXXXXXXXXX_!!65753801-0-paimai.jpg");
obj1.setPostage(0L);
obj1.setProjectId(135068L);
obj1.setProxyNick("中国联通XXX分公司");
obj1.setReservePrice(1000L);
obj1.setStart(StringUtils.parseDateTime("2017-01-23 09:20:37"));
obj1.setStartPrice(10000L);
obj1.setTitle("宝马X3拍卖");
obj1.setAuctionBizType(2L);
obj1.setDeliveryMode(0L);
obj1.setSubAccountNick("子账号nick");
AuctionZcAuctionDraftPublicRequest.AuctionResultDisplay obj2 = new AuctionZcAuctionDraftPublicRequest.AuctionResultDisplay();
obj2.setAuctionResultDisplay(true);
obj2.setAuctionResultDisplayCondition(1L);
obj2.setAuctionResultDisplayDuration(12L);
obj1.setAuctionResultDisplay(obj2);
req.setParamAddZcAuctionDO(obj1);
AuctionZcAuctionDraftPublicResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AuctionZcAuctionDraftPublicRequest req = new AuctionZcAuctionDraftPublicRequest();
AuctionZcAuctionDraftPublicRequest.AddZcAuctionDoDomain obj1 = new AuctionZcAuctionDraftPublicRequest.AddZcAuctionDoDomain();
obj1.AttachUrls = "TB1FSY6XXXXXXX2XFXX.LpbFXXX";
obj1.BuyerNubmer = 1L;
obj1.CategoryId = 133422695L;
obj1.Comp = 132L;
obj1.ConsultPrice = 88800L;
obj1.Description = "98新宝马X3";
obj1.End = DateTime.Parse(2017-02-21 09:20:37");
obj1.FreezeAmount = 2000L;
obj1.IncreaseRange = 1000L;
obj1.IsBuyRestrictions = true;
obj1.IsSupportLoans = false;
obj1.ItemNotice = "拍卖须知";
obj1.LinkMan = "张三";
obj1.Location = 120226L;
obj1.MobilePhone = "13534334***";
obj1.MovieUrl = "http://www.taobao.com";
obj1.OutId = 12324L;
obj1.PicUrlList = "i3/65753801/TB2gi0aXXXXXXalXXXXXXXXXXXX_!!65753801-0-paimai.jpg";
obj1.Postage = 0L;
obj1.ProjectId = 135068L;
obj1.ProxyNick = "中国联通XXX分公司";
obj1.ReservePrice = 1000L;
obj1.Start = DateTime.Parse(2017-01-23 09:20:37");
obj1.StartPrice = 10000L;
obj1.Title = "宝马X3拍卖";
obj1.AuctionBizType = 2L;
obj1.DeliveryMode = 0L;
obj1.SubAccountNick = "子账号nick";
AuctionZcAuctionDraftPublicRequest.AuctionResultDisplayDomain obj2 = new AuctionZcAuctionDraftPublicRequest.AuctionResultDisplayDomain();
obj2.AuctionResultDisplay = true;
obj2.AuctionResultDisplayCondition = 1L;
obj2.AuctionResultDisplayDuration = 12L;
obj1.AuctionResultDisplay= obj2;
req.ParamAddZcAuctionDO_ = obj1;
AuctionZcAuctionDraftPublicResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AuctionZcAuctionDraftPublicRequest;
$param_add_zc_auction_d_o = new AddZcAuctionDo;
$param_add_zc_auction_d_o->attach_urls="TB1FSY6XXXXXXX2XFXX.LpbFXXX";
$param_add_zc_auction_d_o->buyer_nubmer="1";
$param_add_zc_auction_d_o->category_id="133422695";
$param_add_zc_auction_d_o->comp="132";
$param_add_zc_auction_d_o->consult_price="88800";
$param_add_zc_auction_d_o->description="98新宝马X3";
$param_add_zc_auction_d_o->end="2017-02-21 09:20:37";
$param_add_zc_auction_d_o->freeze_amount="2000";
$param_add_zc_auction_d_o->increase_range="1000";
$param_add_zc_auction_d_o->is_buy_restrictions="true";
$param_add_zc_auction_d_o->is_support_loans="false";
$param_add_zc_auction_d_o->item_notice="拍卖须知";
$param_add_zc_auction_d_o->link_man="张三";
$param_add_zc_auction_d_o->location="120226";
$param_add_zc_auction_d_o->mobile_phone="13534334***";
$param_add_zc_auction_d_o->movie_url="http://www.taobao.com";
$param_add_zc_auction_d_o->out_id="12324";
$param_add_zc_auction_d_o->pic_url_list="i3/65753801/TB2gi0aXXXXXXalXXXXXXXXXXXX_!!65753801-0-paimai.jpg";
$param_add_zc_auction_d_o->postage="0";
$param_add_zc_auction_d_o->project_id="135068";
$param_add_zc_auction_d_o->proxy_nick="中国联通XXX分公司";
$param_add_zc_auction_d_o->reserve_price="1000";
$param_add_zc_auction_d_o->start="2017-01-23 09:20:37";
$param_add_zc_auction_d_o->start_price="10000";
$param_add_zc_auction_d_o->title="宝马X3拍卖";
$param_add_zc_auction_d_o->auction_biz_type="2";
$param_add_zc_auction_d_o->delivery_mode="0";
$param_add_zc_auction_d_o->sub_account_nick="子账号nick";
$auction_result_display = new AuctionResultDisplay;
$auction_result_display->auction_result_display="true";
$auction_result_display->auction_result_display_condition="1";
$auction_result_display->auction_result_display_duration="12";
$param_add_zc_auction_d_o->auction_result_display = $auction_result_display;
$req->setParamAddZcAuctionDO(json_encode($param_add_zc_auction_d_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=taobao.auction.zc.auction.draft.public' \
-d 'partner_id=apidoc' \
-d 'sign=3B376B3CC0FE02AEEF5344546A26CD93' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-03+23%3A45%3A52' \
-d 'v=2.0' \
-d 'param_add_zc_auction_d_o=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AuctionZcAuctionDraftPublicRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_add_zc_auction_d_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,"taobao.auction.zc.auction.draft.public");
add_param(pRequest,"param_add_zc_auction_d_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('taobao.auction.zc.auction.draft.public', {
'param_add_zc_auction_d_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})