请求URI: /openapi/v1/channel/create
请求方式: POST
请求参数:
名称 | 位置 | 类型 | 描述 | 默认值 | 必须 |
---|---|---|---|---|---|
token | header | string | 调用令牌 | 是 | |
type | body | string | 直播间类型,live(现场直播),slowlive(慢直播) | live | 否 |
screenDirection | body | string | 直播横竖屏,horizontal(横屏),vertical(竖屏) | horizontal | 否 |
channelName | body | string | 直播间名称 | 是 | |
liveBegin | body | int | 开始时间,秒级时间戳,例如:1679648960 | 是 | |
liveEnded | body | int | 结束时间,秒级时间戳,例如:1679648960 | 是 | |
isVr | body | int | 是否VR直播,1是,0否 | 0 | 否 |
isHomePage | body | int | 是否开启企业主页,1是,0否 | 0 | 否 |
请求示例:
curl -X POST "https://openapi.v1.guangdianyun.tv/openapi/v1/channel/create" -H "token: token" -H "content-type: application/json"
响应示例:
- 返回数据注释参考:直播间详情
{
"code": 200,
"msg": "OK",
"data": {
"id": 106297,
"uin": 3622,
"aid": 0,
"childId": 0,
"oldId": "",
"dmsTopicId": "106297_1995EF22",
"name": "测试直播间openapi",
"trailerUrl": "",
"trailerStatus": 0,
"vodUrl": "",
"vodStatus": 0,
"advertTopStatus": 0,
"advertWords": "",
"advertWordsLink": "",
"shareTitle": "",
"shareSubTitle": "",
"shareImg": "",
"shareNum": 0,
"mpsLssAppId": "7u6z666BzuPQyWSi",
"mpsDynamicVodAppId": "7Bb6zHbzbHUPyJiX",
"mpsBackground": "",
"layoutColor": "dark",
"countdownStatus": 0,
"countdownWords": "",
"countdownTime": 0,
"chatAuthModel": 0,
"chatLogin": 0,
"chatDisable": 0,
"chatAdminName": "",
"chatAdminAva": "https://static-pro.guangdianyun.tv/3622/mss/20220108/htxvwx0f12cgh3q4arf1npp5sgdkf409.jpeg",
"chatSee": 0,
"commentCallBack": "",
"removeCommentCallBack": "",
"watchNum": 0,
"praiseNum": 0,
"customWatchStatus": 0,
"customWatchNum": 0,
"customWatchTrendNumMin": 0,
"customWatchTrendNumMax": 0,
"customWatchLimitMax": 0,
"customWatchGrowStatus": 0,
"isDisplayWatchNum": 0,
"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": 1679648658,
"updateTime": 0,
"defaultUserAva": "https://static-pro.guangdianyun.tv/3622/mss/20220108/htxvwx0f12cgh3q4arf1npp5sgdkf409.jpeg",
"rewardStatus": 0,
"rewardName": "",
"rewardPhoto": "",
"rewardConfig": "",
"rewardGiftStatus": 0,
"imageTextStatus": 0,
"vodUrl_ext": "",
"advertMiddleStatus": 0,
"advertTextStatus": 0,
"needPay": 0,
"tryTime": 0,
"price": 0,
"pcBackground": "",
"isSendRed": 0,
"drawStatus": 0,
"advertMiddleIsclose": 0,
"advertTopIsclose": 0,
"reprintStatus": 0,
"reprintId": 0,
"leagueId": 0,
"pullStream": 0,
"needPassword": 0,
"tips": "",
"password": "",
"lssApp": "guangdianyun_49435",
"stream": "program_live_channel_1062970574",
"copyLssApp": "",
"copyLssStream": "",
"soldierId": 0,
"streamType": 0,
"playStatus": 0,
"lssPublishUrl": "",
"isRecordRedPacket": 0,
"chatCountStatus": 0,
"liveBegin": 1679565129,
"liveEnded": 1679575129,
"isTryWatch": 0,
"payExtTime": 0,
"payResetTime": 0,
"isInvitation": 0,
"leagueCheck": 0,
"officialName": "奥点宋毅洲",
"officialLogo": "https://static-pro.guangdianyun.tv/3622/mss/20220108/htxvwx0f12cgh3q4arf1npp5sgdkf409.jpeg",
"panelVersion": "live",
"screenDirection": "horizontal",
"isVr": 0,
"isHomePage": 0,
"customSkinId": 0,
"menu": null,
"livePlayHlsUrl": "",
"livePublishUrl": "", //推流地址
"livePlayRtmpUrl": "",
"liveNowStatus": 0,
"chatNum": 0,
"url": "https://web.guangdianyun.tv/live/106297?uin=3622"
}
}
最后编辑: 广电云技术部 文档更新时间: 2025-09-22 16:32 作者:广电云技术部