TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AuctionZcAuctionPublicRequest req = new AuctionZcAuctionPublicRequest();
AuctionZcAuctionPublicRequest.AddZcAuctionDo obj1 = new AuctionZcAuctionPublicRequest.AddZcAuctionDo();
obj1.setAttachUrls("附件的淘宝链接地址");
obj1.setBuyerNubmer(1L);
obj1.setCategoryId(34342L);
obj1.setComp(132L);
obj1.setConsultPrice(1223L);
obj1.setDescription("标的物的描述信息");
obj1.setEnd(StringUtils.parseDateTime("2015-12-21 09:20:37"));
obj1.setFreezeAmount(11L);
obj1.setIncreaseRange(123L);
obj1.setIsBuyRestrictions(true);
obj1.setIsSupportLoans(false);
obj1.setItemNotice("拍卖须知");
obj1.setLinkMan("张三");
obj1.setLocation(122232L);
obj1.setMobilePhone("13534334***");
obj1.setMovieUrl("淘宝域名下的url地址");
obj1.setOutId(12324L);
obj1.setPicUrlList("淘宝域名下的url地址");
obj1.setPostage(0L);
obj1.setProjectId(12343L);
obj1.setProxyNick("中国联通XXX分公司");
obj1.setReservePrice(213232L);
obj1.setStart(StringUtils.parseDateTime("2015-12-23 09:20:37"));
obj1.setStartPrice(1212L);
obj1.setTitle("拍品标题");
obj1.setSubAccountNick("子账号nick");
AuctionZcAuctionPublicRequest.AuctionResultDisplay obj2 = new AuctionZcAuctionPublicRequest.AuctionResultDisplay();
obj2.setAuctionResultDisplay(true);
obj2.setAuctionResultDisplayCondition(1L);
obj2.setAuctionResultDisplayDuration(12L);
obj1.setAuctionResultDisplay(obj2);
req.setParamAddZcAuctionDO(obj1);
AuctionZcAuctionPublicResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AuctionZcAuctionPublicRequest req = new AuctionZcAuctionPublicRequest();
AuctionZcAuctionPublicRequest.AddZcAuctionDoDomain obj1 = new AuctionZcAuctionPublicRequest.AddZcAuctionDoDomain();
obj1.AttachUrls = "附件的淘宝链接地址";
obj1.BuyerNubmer = 1L;
obj1.CategoryId = 34342L;
obj1.Comp = 132L;
obj1.ConsultPrice = 1223L;
obj1.Description = "标的物的描述信息";
obj1.End = DateTime.Parse(2015-12-21 09:20:37");
obj1.FreezeAmount = 11L;
obj1.IncreaseRange = 123L;
obj1.IsBuyRestrictions = true;
obj1.IsSupportLoans = false;
obj1.ItemNotice = "拍卖须知";
obj1.LinkMan = "张三";
obj1.Location = 122232L;
obj1.MobilePhone = "13534334***";
obj1.MovieUrl = "淘宝域名下的url地址";
obj1.OutId = 12324L;
obj1.PicUrlList = "淘宝域名下的url地址";
obj1.Postage = 0L;
obj1.ProjectId = 12343L;
obj1.ProxyNick = "中国联通XXX分公司";
obj1.ReservePrice = 213232L;
obj1.Start = DateTime.Parse(2015-12-23 09:20:37");
obj1.StartPrice = 1212L;
obj1.Title = "拍品标题";
obj1.SubAccountNick = "子账号nick";
AuctionZcAuctionPublicRequest.AuctionResultDisplayDomain obj2 = new AuctionZcAuctionPublicRequest.AuctionResultDisplayDomain();
obj2.AuctionResultDisplay = true;
obj2.AuctionResultDisplayCondition = 1L;
obj2.AuctionResultDisplayDuration = 12L;
obj1.AuctionResultDisplay= obj2;
req.ParamAddZcAuctionDO_ = obj1;
AuctionZcAuctionPublicResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AuctionZcAuctionPublicRequest;
$param_add_zc_auction_d_o = new AddZcAuctionDo;
$param_add_zc_auction_d_o->attach_urls="附件的淘宝链接地址";
$param_add_zc_auction_d_o->buyer_nubmer="1";
$param_add_zc_auction_d_o->category_id="34342";
$param_add_zc_auction_d_o->comp="132";
$param_add_zc_auction_d_o->consult_price="1223";
$param_add_zc_auction_d_o->description="标的物的描述信息";
$param_add_zc_auction_d_o->end="2015-12-21 09:20:37";
$param_add_zc_auction_d_o->freeze_amount="11";
$param_add_zc_auction_d_o->increase_range="123";
$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="122232";
$param_add_zc_auction_d_o->mobile_phone="13534334***";
$param_add_zc_auction_d_o->movie_url="淘宝域名下的url地址";
$param_add_zc_auction_d_o->out_id="12324";
$param_add_zc_auction_d_o->pic_url_list="淘宝域名下的url地址";
$param_add_zc_auction_d_o->postage="0";
$param_add_zc_auction_d_o->project_id="12343";
$param_add_zc_auction_d_o->proxy_nick="中国联通XXX分公司";
$param_add_zc_auction_d_o->reserve_price="213232";
$param_add_zc_auction_d_o->start="2015-12-23 09:20:37";
$param_add_zc_auction_d_o->start_price="1212";
$param_add_zc_auction_d_o->title="拍品标题";
$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.public' \
-d 'partner_id=apidoc' \
-d 'sign=E056AE6525B71463A9EA2383A46CBD82' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+13%3A00%3A36' \
-d 'v=2.0' \
-d 'param_add_zc_auction_d_o=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AuctionZcAuctionPublicRequest(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.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.public', {
'param_add_zc_auction_d_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})