https://api.polyv.net/live/v3/channel/pptRecord/get-setting
1、接口用于设置重制课件参数
2、接口支持https
{
"code": 200,
"status": "success",
"message": "",
"data": {
"channelId": 1947328,
"userId": "cf7f07e096",
"type": 0,
"globalSettingEnabled": "N",
"backgroundImg": "http://liveimages.videocc.net/uploaded/images/2020/12/fu9tqrl4wj.jpg",
"videoRatio": "0",
"brandImg": "http://liveimages.videocc.net/uploadimage/20201224/remakeCoursewareBg_1608804635322_7656406.png",
"createdTime": 1602471455000,
"lastModified": 1608859631000
}
}
{
"code": 400,
"status": "error",
"message": "param validate error",
"data": ""
}
{
"code": 400,
"status": "error",
"message": "appId is required.",
"data": ""
}
{
"code": 400,
"status": "error",
"message": "application not found.",
"data": ""
}
{
"code": 400,
"status": "error",
"message": "invalid timestamp.",
"data": ""
}
{
"code": 403,
"status": "error",
"message": "invalid signature.",
"data": ""
}
{
"code": 403,
"status": "error",
"message": "illegal channel id: %s",
"data": ""
}
public void testAddRecordTask() {
String url = "https://api.polyv.net/live/v3/channel/pptRecord/get-setting";
// appId和加密串
String appId = "xxxxxxx";
String appSecret = "xxxxxxxxxxxxxxxxxx";
int channelId = 123;
Map<String, String> params = new HashMap<>();
params.put("channelId", String.valueOf(channelId));
// 调用Polyv的工具类方法设置sign
PolyvTool.setLiveSign(params, appId, appSecret);
String content = HttpClientUtil.getInstance()
.sendHttpPost(url, params);
System.out.println(content);
}