文档中心 > API类目 > 淘宝小程序API

taobao.miniapp.article.content.get (小程序文章内容获取)

小程序文章内容获取

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
article_ids String [] 必须 87968daa04228cd823480276e706695a
  • 最大列表长度:20
  • 文章内容id列表

    响应参数

    名称 类型 示例值 描述
    articles ArticleContentDTO [] 文章列表 文章
    • └ article_id
    • String
    • 87968daa04228cd823480276e706695a
    • 文章内容id
    • └ status
    • byte
    • 1
    • 状态值:1-审核通过;2-审核不通过;3-强制下线
    • └ content
    • String
    • 文章展现内容(富文本形式)
    • 文章展现内容(富文本形式)

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    MiniappArticleContentGetRequest req = new MiniappArticleContentGetRequest();
    req.setArticleIds("87968daa04228cd823480276e706695a");
    MiniappArticleContentGetResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <miniapp_article_content_get_response>
        <articles>
            <article_content_d_t_o>
                <article_id>87968daa04228cd823480276e706695a</article_id>
                <status>1</status>
                <content>文章展现内容(富文本形式)</content>
            </article_content_d_t_o>
        </articles>
    </miniapp_article_content_get_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

    返回
    顶部