# 获取节目列表
# URL: /wp-json/wp/v2/programs
# HTTP请求方式: GET
# 授权角色:'administrator', 'editor', 'operator', 'contributor', 'auditor', 'subscriber', 'supervisor', 'invitee', 'monitor', 'manager'
# 支持格式: json
# 描述:获取节目列表
# 请求参数:
| 字段名 | 必选 | 类型及范围 | 说明 | 示例 |
|---|---|---|---|---|
| page | 否 | int | 列表的页码,默认是1 | 1 |
| per_page | 否 | int | 每页显示数量 | 12 |
| status | 否 | string | 节目状态 any- 所有节目状态 | |
| mime_type | 否 | string | 用于区分是桶节目还是其它节目,当是桶节目时,该值是bucket;不传则是非桶节目 | |
| author | 否 | int | 节目作者id | |
| search | 否 | string | 节目名模糊匹配的关键词 | |
| orderby | 否 | string | 排序 modified-根据节目修改时间排序 programName-根据节目名升序排序 | |
| before | 否 | string | 节目修改时间在该时间之前(包含) | |
| after | 否 | string | 节目修改时间在该时间之后(包含) | |
| terminalGroupId | 否 | int | 终端组id |
# 成功响应:
| 字段名 | 类型及范围 | 说明 | 示例 |
|---|---|---|---|
| date | string | 节目创建日期 | 2022-08-11T02:23:12 |
| vsn_name | string | 节目vsn名字 | Playlist68_e03893c6ad80438e635610687461bb65_1373.vsn |
| modified_gmt | string | 节目修改时间(GMT) | 2022-08-11T02:24:43Z |
| author | int | 节目作者ID | 1 |
| title | object | 节目名 | { "rendered": "Playlist68" } |
| program_source_thumbnail | string | 节目缩略图路径 | |
| type | string | 类型 | program |
| program_info | object | 创建节目的参数 | 略 |
| modified | string | 节目修改时间 | |
| id | int | 节目ID | |
| terminals_groups | array | 节目发布到的终端组/终端 | |
| date_gmt | string | 节目创建时间(GMT) | |
| status | string | 节目状态 | publish |
示例:
[
{
"date": "2024-07-11T02:26:12",
"vsn_name": "Playlist63224545_a0ebbeef68bdcf0901e358d5d64ff063_4602.vsn",
"modified_gmt": "2024-07-11T02:44:43Z",
"author": 1,
"published_by_schedule": false,
"program_source_thumbnail": "https://sa2.colorlightcloud.com:443/wp-content/playList/thumbnails/1720664772610_a2ed445ee521c5ca258fadeb3ce44678.png",
"title": {
"rendered": "Playlist63224545"
},
"type": "program",
"_embedded": {
"author": [
{
"name": "superroot"
}
]
},
"program_info": {},
"modified": "2024-07-11T02:44:43",
"title_raw": "Playlist63224545",
"id": 900,
"terminals_groups": [
{
"all": true,
"parent": 1,
"name": "test video crop",
"id": 92,
"terminals": [
]
}
],
"date_gmt": "2024-07-11T02:26:12Z",
"slug": "Playlist63224545_a0ebbeef68bdcf0901e358d5d64ff063_4602",
"status": "publish"
}
]
# 调用示例及返回结果:
