创建研讨会频道(旧版后台)
接口描述
接口URL
请求方式
接口约束
1、接口同时支持HTTP 、HTTPS ,建议使用HTTPS 确保接口安全,接口调用有频率限制,详细请查看
请求参数描述
请求体参数描述
basicSetting参数描述
name
true
String
频道名称
channelPasswd
true
String
频道密码,(可以通过频道号+频道密码登录该频道)长度不能超过16位,必须同时包含字母和数字
scene
false
String
直播场景 seminar:研讨会
coverImg
false
String
封面图片地址
likes
false
Long
点赞数
pageView
false
Long
累积观看数
subAccount
false
String
子账号邮箱,填写时频道会创建在该子账号下(子账号不能被删除或者禁用),暂无法通过接口获取
authSettings参数描述
rank
true
Integer
主要观看条件为1,次要观看条件为2
enabled
true
String
是否开启条件观看 N:关闭 Y:开启
authType
false
String
pay:付费观看 code:验证码观看 info:登记观看 custom:自定义授权观看 external:外部授权观看 direct:独立授权观看
payAuthTips
false
String
当authType为pay时,设置参数,必填。欢迎语标题
price
false
Float
当authType为pay时,设置参数,必填。价格,单位为元
watchEndTime
false
String
当authType为pay时,设置参数,非必填。付费有效截止日期,格式:yyyy-MM-dd HH:mm
validTimePeriod
false
Integer
当authType为pay时,设置参数,非必填。付费有效时长,单位天。当watchEndTime和validTimePeriod都为空时,表示付费永久有效
authCode
false
String
当authType为code时,设置参数,必填。验证码
qcodeTips
false
String
当authType为code时,设置参数,非必填。提示文案
qcodeImg
false
String
当authType为code时,设置参数,非必填。公众号二维码地址
externalKey
false
String
当authType为external时,设置参数,必填。SecretKey
externalUri
false
String
当authType为external时,设置参数,必填。自定义url
externalRedirectUri
false
String
当authType为external时,设置参数,非必填。跳转地址
customKey
false
String
当authType为custom时,设置参数,必填。SecretKey
customUri
false
String
当authType为custom时,设置参数,必填。自定义url
directKey
false
String
当authType为direct时,设置参数,必填。独立授权SecretKey
示例
请求体json参数:
响应参数描述
Data参数描述
channelId
String
直播频道号
userId
String
POLYV用户ID,和保利威官网一致,获取路径:官网->登录->直播(开发设置)
name
String
直播频道名称
publisher
String
主持人
description
String
直播频道描述
scene
String
直播场景 seminar:研讨会
channelPasswd
String
频道密码
currentTimeMillis
Long
当前时间戳(毫秒)
Java请求示例
快速接入基础代码请下载相关依赖源码, 点击下载源代码 ,下载后加入到自己的源码工程中即可。测试用例中的HttpUtil.java 和 LiveSignUtil.java 都包含在下载文件中。
强烈建议您使用直播Java SDK完成API的功能对接,直播Java SDK 对API调用逻辑、异常处理、数据签名、HTTP请求线程池进行了统一封装和优化。
响应示例
系统全局错误说明详见全局错误说明
成功示例
异常示例
Last updated
Was this helpful?