请求URI: /openapi/v2/channel/list
请求方式: GET
请求参数:
名称 | 位置 | 类型 | 描述 | 必须 | 默认值 | 可选值 |
---|---|---|---|---|---|---|
token | header | string | 调用令牌 | 是 | ||
name | query | string | 直播间名称 | 否 | ||
ids | query | string | 指定直播间id,以英文逗号隔开 | 否 | ||
type | query | string | 直播间类型 | 否 | live | live:现场直播,slowlive:慢直播,teacherlive:讲师直播, radio:电台直播,tv:电视直播 |
page | query | integer | 分页参数 | 否 | 1 | |
num | query | integer | 分页参数 | 否 | 15 | 1-200 |
status | query | integer | 直播间状态 | 否 | 1 | 1正常 2回收站 |
start_time | query | integer | 开始时间,时间戳(秒) | 否 | ||
end_time | query | integer | 结束时间,时间戳(秒) | 否 | ||
aid | query | integer | 频道账号id | 否 | ||
orderBy | query | string | 列表排序字段 | 否 | updateTime:更新时间,默认根据创建时间排序 |
请求示例:
curl -X GET "https://openapi.v1.guangdianyun.tv/openapi/v2/channel/list" -H "accept: application/json" -H "token: token"
响应示例:
{
"code": 200,
"msg": "OK",
"data": {
"count": 689,
"list": [
{
"id": 39481, // 直播间ID
"uin": 1003, // 组织唯一标识
"aid": 0, // 频道ID
"childId": 0, // 子账号ID
"oldId": "",
"dmsTopicId": "39481_b9avcgo9", // DMS Topic ID
"name": "机器人聊天", // 直播间名称
"trailerUrl": "",
"trailerStatus": 0,
"vodUrl": "", // 回放Url
"vodStatus": 0, // 回放状态,0关闭,1开启
"advertTopStatus": 0,
"advertWords": "",
"advertWordsLink": "",
"shareTitle": "",
"shareSubTitle": "",
"shareImg": "",
"shareNum": 0,
"mpsLssAppId": "7mzb6mNBzHUyxxSW",
"mpsDynamicVodAppId": "f1z363N3H63xJQPP",
"mpsBackground": "",
"layoutColor": "",
"countdownStatus": 0,
"countdownWords": "",
"countdownTime": 0,
"chatAuthModel": 2,
"chatLogin": 1,
"chatDisable": 0,
"chatAdminName": "",
"chatAdminAva": "",
"chatSee": 0,
"commentCallBack": "",
"removeCommentCallBack": "",
"watchNum": 2,
"praiseNum": 0,
"customWatchStatus": 0,
"customWatchNum": 0,
"customWatchTrendNumMin": 0,
"customWatchTrendNumMax": 0,
"customWatchLimitMax": 0,
"customWatchGrowStatus": 1,
"isDisplayWatchNum": 1,
"customPraiseStatus": 0,
"customPraiseNum": 0,
"customPraiseTrendNumMin": 0,
"customPraiseTrendNumMax": 0,
"customPraiseGrowStatus": 0,
"publishTaskId": 0,
"publishType": 0,
"publishTaskMakeAppId": "",
"voteShowStatus": 0,
"cameraMainName": "",
"cameraShowStatus": 0,
"introduce": "",
"logo": "",
"liveStatus": 0,
"status": 1,
"createTime": 1585800286,
"updateTime": 0,
"defaultUserAva": "",
"rewardStatus": 2,
"rewardName": "",
"rewardPhoto": "",
"rewardConfig": "",
"rewardGiftStatus": 2,
"imageTextStatus": 2,
"vodUrl_ext": "",
"advertMiddleStatus": 0,
"advertTextStatus": 0,
"needPay": 2,
"tryTime": 0,
"price": 0,
"pcBackground": "",
"isSendRed": 1,
"drawStatus": 2,
"advertMiddleIsclose": 1,
"advertTopIsclose": 0,
"reprintStatus": 0,
"reprintId": 0,
"leagueId": 0,
"pullStream": 0,
"needPassword": 2,
"tips": "",
"password": "",
"lssApp": "lms_25492",
"stream": "program_live_channel_39481",
"copyLssApp": "",
"copyLssStream": "",
"soldierId": 0,
"streamType": 1,
"playStatus": 1,
"lssPublishUrl": "",
"isRecordRedPacket": 1,
"chatCountStatus": 0,
"liveBegin": 1585756800, // 开启直播时间
"liveEnded": 1588176000, // 结束直播时间
"isTryWatch": 0,
"payExtTime": 0,
"payResetTime": 0,
"isInvitation": 0,
"leagueCheck": 0,
"menu": null,
"livePlayHlsUrl": "//xxx/lms_25492/program_livexxx.m3u8",
"livePublishUrl": "rtmp://xxx/lms_25492/program_livexxx",
"livePlayRtmpUrl": "rtmp://xxx/lms_25492/program_livexxx",
"liveNowStatus": 0,
"url": "https://web.guangdianyun.tv/live/52190?uin=1003", // 直播间地址
"chatNum": 0,
"screenDirection":"vertical"
}
]
}
}
最后编辑: 广电云技术部 文档更新时间: 2024-11-14 10:47 作者:广电云技术部