taobao.auction.zc.pulicity.publish (新建处置公告或工作公示)

新建处置公告或工作公示

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
proxy_nick String 必须 拍卖测试帐号 机构淘宝账号昵称
title String 必须 测试标题 公告标题,限150个字
content String 必须 测试内容 公告富文本内容
type Number 必须 24 公告类型对应的枚举值,例如24对应处置公告
attachments String 可选 测试文件1.txt|OSS-DA/001.txt,测试文件2.pdf|OSS-DA/002.pdf 附件列表,多个附件使用逗号分隔,格式参照name1|url1,name2|url2,附件支持txt、doc、docx、xls、xlsx、pdf格式,大小不超过5M
publicity_id Number 可选 15407 公告ID,仅编辑时填写

响应参数

名称 类型 示例值 描述
value Number 15407 公告ID
result_msg String 系统异常 错误描述
result_code String SYSTEM_ERROR 错误Code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AuctionZcPulicityPublishRequest req = new AuctionZcPulicityPublishRequest();
req.setProxyNick("拍卖测试帐号");
req.setTitle("测试标题");
req.setContent("测试内容");
req.setType(24L);
req.setAttachments("测试文件1.txt|OSS-DA/001.txt,测试文件2.pdf|OSS-DA/002.pdf");
req.setPublicityId(15407L);
AuctionZcPulicityPublishResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<auction_zc_pulicity_publish_response>
    <value>15407</value>
    <result_msg>系统异常</result_msg>
    <result_code>SYSTEM_ERROR</result_code>
</auction_zc_pulicity_publish_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部