文档中心 > API类目 > 书旗内容文巢

alibaba.shuqi.original.backend.ognvnotice.noticeinfo (公告详细信息)

查询一条公告的详细信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
notice_id Number 必须 212 noticeId

响应参数

名称 类型 示例值 描述
result CommonResponse result
  • data
  • CommonResponse
  • data
  • └ publish_time
  • Number
  • 1626165572
  • publishTime
  • └ top
  • Number
  • 0
  • top
  • └ sender
  • String
  • 尹帅
  • sender
  • └ author_type
  • Number
  • 1
  • authorType
  • └ author_sex
  • Number
  • 0
  • authorSex
  • └ sign_type
  • Number
  • 0
  • signType
  • └ title
  • String
  • 我测试搞个--图文--公告
  • title
  • └ content_type
  • Number
  • 1
  • contentType
  • └ content
  • String
  • <p><img src="http://img-tailor.11222.cn/ognv/notice/202107131637554081960667193.jpeg" style="max-width: 100%; display: block; margin: 10px 0px;"></p>
  • content
  • └ state
  • Number
  • 200
  • state
  • └ message
  • String
  • ok
  • message

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaShuqiOriginalBackendOgnvnoticeNoticeinfoRequest req = new AlibabaShuqiOriginalBackendOgnvnoticeNoticeinfoRequest();
req.setNoticeId(212L);
AlibabaShuqiOriginalBackendOgnvnoticeNoticeinfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_shuqi_original_backend_ognvnotice_noticeinfo_response>
    <result>
        <data>
            <publish_time>1626165572</publish_time>
            <top>0</top>
            <sender>尹帅</sender>
            <author_type>1</author_type>
            <author_sex>0</author_sex>
            <sign_type>0</sign_type>
            <title>我测试搞个--图文--公告</title>
            <content_type>1</content_type>
            <content>&lt;p&gt;&lt;img src=&quot;http://img-tailor.11222.cn/ognv/notice/202107131637554081960667193.jpeg&quot; style=&quot;max-width: 100%; display: block; margin: 10px 0px;&quot;&gt;&lt;/p&gt;</content>
        </data>
        <state>200</state>
        <message>ok</message>
    </result>
</alibaba_shuqi_original_backend_ognvnotice_noticeinfo_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

返回
顶部