https://api.polyv.net/live/v3/channel/pptRecord/batch-delete
1、接口用于删除重制课件任务, 可批量参数,正在进行重制中的任务不能删除
2、接口支持https
{
"code": 200,
"status": "success",
"message": "",
"data": {
"result": true
}
}
{
"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/batch-delete";
// appId和加密串
String appId = "xxxxxxx";
String appSecret = "xxxxxxxxxxxxxxxxxx";
String taskIds = "1,2,3";
int channelId = 123;
Map<String, String> params = new HashMap<>();
params.put("taskIds", taskIds);
params.put("channelId", String.valueOf(channelId));
// 调用Polyv的工具类方法设置sign
PolyvTool.setLiveSign(params, appId, appSecret);
String content = HttpClientUtil.getInstance()
.sendHttpPost(url, params);
System.out.println(content);
}