taobao.auction.zc.pulicity.query (查询处置公告或工作公示)

查询处置公告或工作公示

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
publicity_id Number 必须 15407 公告ID

响应参数

名称 类型 示例值 描述
result_code String SYSTEM_ERROR 错误Code
data PublicityTopVO 公告信息
  • └ type
  • Number
  • 24
  • 公告类型
  • └ type_desc
  • String
  • 处置公告
  • 公告类型描述
  • └ title
  • String
  • 测试公告
  • 公告标题
  • └ content
  • String
  • 测试内容
  • 公告富文本内容
  • └ attachments
  • String
  • [{"name":"xxx","url":"xxx"},{"name":"xxx","url":"xxx"}]
  • 附件信息,JSON格式
  • └ publish_time
  • Number
  • 1737446921000
  • 发布时间戳,毫秒
  • └ status
  • Number
  • 1
  • 公告状态,-1:已删除 1:已发布 2:已撤回
result_msg String 系统异常 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AuctionZcPulicityQueryRequest req = new AuctionZcPulicityQueryRequest();
req.setPublicityId(15407L);
AuctionZcPulicityQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<auction_zc_pulicity_query_response>
    <result_code>SYSTEM_ERROR</result_code>
    <data>
        <type>24</type>
        <type_desc>处置公告</type_desc>
        <title>测试公告</title>
        <content>测试内容</content>
        <attachments>[{&quot;name&quot;:&quot;xxx&quot;,&quot;url&quot;:&quot;xxx&quot;},{&quot;name&quot;:&quot;xxx&quot;,&quot;url&quot;:&quot;xxx&quot;}]</attachments>
        <publish_time>1737446921000</publish_time>
        <status>1</status>
    </data>
    <result_msg>系统异常</result_msg>
</auction_zc_pulicity_query_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

返回
顶部