Skip to content

通过频道ID获取稿件列表

1 接口名称

通过频道ID获取稿件列表

2 接口描述

  • 频道稿件列表(管理后台展示的稿件列表)

3 请求地址

plain
{apiAddress}/openapi/v2/channel_article/list?appkey=v6NBjaIriI7njaQrmaEJJfym&connectNo=e000b5743a866438&noncestr=1234567890&timestamp=1701824617061&signature=8364b085e1dfb051d65c8879c472105f&channelId=5c1cb47283c7660c884c55c3&current=1&size=10&title=新闻&docType=1

4 请求方式

GET

5 请求参数

5.1 Query Params 参数

序号参数名称类型必传说明
1connectNostring约定的通信connectNo(区别用户)
2channelIdString频道ID,必填
3docTypeint稿件类型:
1- 新闻稿;2- 专题稿;3- 链接稿
4- 图集稿;5- 活动稿;6- 视频稿
7- 直播稿;8- 视频专辑;9- 音频专辑
10- 全民记者稿
4titleString标题内容
5currentint分页参数,当前页
6sizeint分页参数,每页数量,最大值为50

6 返回参数

6.1参数描述

编号字段类型说明
1codeint返回编码
2messageString响应消息
3dataobject

data结构详情

编号字段类型说明
1articleListPage稿件分页列表

ArticleVO详情

编号字段类型说明
1idlong稿件ID
2listTitleString稿件标题
3docTypeint稿件类型
4originalIdlong源稿件ID,如果是一稿多签的稿件会存在此ID
5creatorString作者
6urlStringh5链接
7createdAtString创建时间
8updatedAtString修改时间
9updatedByString修改人
10publishedAtString发布时间
11channelNameString频道(栏目)名称
12listPicsList稿件列表图

6.2参数示例

json
{
  "code": 0,
  "message": "success",
  "data": {
    "articleList": {
      "total": 100,
      "size": 10,
      "current": 1,
      "pages": 10,
      "records": [
        {
          "id": 1809203,
          "listTitle": "二十大精神在身边",
          "docType": 5,
          "originalId": 1726593,
          "creator": "陈涵婷",
          "url": "https://app.tmuyun.com/webDetails/subject?id=1726593&tenantId=3",
          "createdAt": "2023-11-03 09:42:54",
          "updatedAt": "2023-11-03 09:42:54",
          "updatedBy": "",
          "publishedAt": "2023-11-03 09:42:54",
          "channelName": "频道名称",
          "listPics": [
            "image1",
            "image2"
          ]
        }
      ]
    }
  }
}

7 备注

成功返回code是0,非0时均为失败。