Appearance
通过频道ID获取稿件列表
1 接口名称
通过频道ID获取稿件列表
2 接口描述
- 频道稿件列表(管理后台展示的稿件列表)
3 请求地址
plain
{apiAddress}/openapi/v2/channel_article/list?appkey=v6NBjaIriI7njaQrmaEJJfym&connectNo=e000b5743a866438&noncestr=1234567890×tamp=1701824617061&signature=8364b085e1dfb051d65c8879c472105f&channelId=5c1cb47283c7660c884c55c3¤t=1&size=10&title=新闻&docType=1
4 请求方式
GET
5 请求参数
5.1 Query Params 参数
序号 | 参数名称 | 类型 | 必传 | 说明 |
---|---|---|---|---|
1 | connectNo | string | 是 | 约定的通信connectNo(区别用户) |
2 | channelId | String | 是 | 频道ID,必填 |
3 | docType | int | 否 | 稿件类型: 1- 新闻稿;2- 专题稿;3- 链接稿 4- 图集稿;5- 活动稿;6- 视频稿 7- 直播稿;8- 视频专辑;9- 音频专辑 10- 全民记者稿 |
4 | title | String | 否 | 标题内容 |
5 | current | int | 是 | 分页参数,当前页 |
6 | size | int | 是 | 分页参数,每页数量,最大值为50 |
6 返回参数
6.1参数描述
编号 | 字段 | 类型 | 说明 |
---|---|---|---|
1 | code | int | 返回编码 |
2 | message | String | 响应消息 |
3 | data | object |
data结构详情
编号 | 字段 | 类型 | 说明 |
---|---|---|---|
1 | articleList | Page | 稿件分页列表 |
ArticleVO详情
编号 | 字段 | 类型 | 说明 |
---|---|---|---|
1 | id | long | 稿件ID |
2 | listTitle | String | 稿件标题 |
3 | docType | int | 稿件类型 |
4 | originalId | long | 源稿件ID,如果是一稿多签的稿件会存在此ID |
5 | creator | String | 作者 |
6 | url | String | h5链接 |
7 | createdAt | String | 创建时间 |
8 | updatedAt | String | 修改时间 |
9 | updatedBy | String | 修改人 |
10 | publishedAt | String | 发布时间 |
11 | channelName | String | 频道(栏目)名称 |
12 | listPics | List | 稿件列表图 |
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时均为失败。