查询频道视频审核记录列表
接口描述
1、查询频道场次审核记录列表
2、接口支持https协议接口URL
http://api.polyv.net/live/v4/channel/video-moderation/result/list请求方式
GET接口约束
1、接口同时支持HTTP 、HTTPS ,建议使用HTTPS 确保接口安全,接口调用有频率限制,详细请查看
请求参数描述
sign
true
String
签名,为32位大写的MD5值,生成签名的appSecret密钥作为通信数据安全的关键信息,严禁保存在客户端直接使用,所有API都必须通过客户自己服务器中转调用POLYV服务器获取响应数据【详见签名生成规则】
timestamp
true
String
当前13位毫秒级时间戳,3分钟内有效
channelId
true
String
频道号
label
false
String
识别类型,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义违规;Badword:自定义严禁词;Illegal:违规;Polity:涉政;Moan:呻吟;Terror:暴恐;Religion:宗教;Sexy:性感;Teenager:青少年;Copyright:版权;多个使用英文逗号分隔
pageNumber
false
String
当前页数,第几页
pageSize
false
String
分页大小,默认10,最大不超过1000
resultType
false
String
结果类型,1:通过,2:违规,3:疑似,多个使用英文逗号分隔
sessionId
false
String
频道场次id
示例
http://api.polyv.net/live/v4/channel/video-moderation/result/list?pageNumber=1&appId=gga9dadhzm&sign=612561DF5502DD76CE1B760EB2B907BA&pageSize=20&label=&sessionId=gj4z866us3&resultType=&channelId=3775168×tamp=1679622317653响应参数描述
Data参数描述
pageNumber
Integer
当前页数,第几页
pageSize
Integer
分页大小
totalItems
Integer
总记录数
totalPages
Integer
总页数
Contents参数描述
channelId
Integer
频道id
createTime
String
审核时间
id
Integer
主键id
imageUrl
String
图片链接
label
String
识别类型,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义违规;Badword:自定义严禁词;Illegal:违规;Polity:涉政;Moan:呻吟;Terror:暴恐;Religion:宗教;Sexy:性感;Teenager:青少年;Copyright:版权;多个使用英文逗号分隔
labelDesc
String
识别类型描述
moderationStrategyDesc
String
策略描述
ocrKeyword
String
ocr关键词
ocrText
String
ocr文本
politicalName
String
涉政人物
resultType
Integer
审核结果(1:通过,2:违规,3:疑似)
resultTypeDesc
String
审核结果描述
sessionId
String
场次id
taskId
Integer
任务id
userId
String
POLYV用户ID,和保利威官网一致,获取路径:官网->登录->直播(开发设置)
Error参数描述
code
Integer
错误代码,用于确定具体的错误原因
desc
String
错误描述,与 error.code 对应
Java请求示例
快速接入基础代码请下载相关依赖源码, 点击下载源代码 ,下载后加入到自己的源码工程中即可。测试用例中的HttpUtil.java 和 LiveSignUtil.java 都包含在下载文件中。
强烈建议您使用直播Java SDK完成API的功能对接,直播Java SDK 对API调用逻辑、异常处理、数据签名、HTTP请求线程池进行了统一封装和优化。
private static final Logger log = LoggerFactory.getLogger(getClass());
/**
* 查询频道场次审核记录列表
* @throws IOException
* @throws NoSuchAlgorithmException
*/
@Test
public void resultListTest() throws IOException, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String appId = super.appId;
String appSecret = super.appSecret;
String timestamp = String.valueOf(System.currentTimeMillis());
//业务参数
String url = "http://api.polyv.net/live/v4/channel/video-moderation/result/list";
String channelId = "3775168";
String label = "";
String pageNumber = "1";
String pageSize = "20";
String resultType = "";
String sessionId = "gj4z866us3";
//http 调用逻辑
Map<String, String> requestMap = new HashMap<>();
requestMap.put("appId", appId);
requestMap.put("timestamp", timestamp);
requestMap.put("channelId", channelId);
requestMap.put("label", label);
requestMap.put("pageNumber", pageNumber);
requestMap.put("pageSize", pageSize);
requestMap.put("resultType", resultType);
requestMap.put("sessionId", sessionId);
requestMap.put("sign", LiveSignUtil.getSign(requestMap, appSecret));
String response = HttpUtil.get(url, requestMap);
log.info("测试查询频道场次审核记录列表成功:{}", response);
//do somethings
}响应示例
系统全局错误说明详见全局错误说明
成功示例
{
"code": 200,
"status": "success",
"requestId": "6c13efc8cc424973b7ba76deb33e664e.67.16796223224271993",
"data": {
"pageNumber": 1,
"pageSize": 20,
"totalPages": 2,
"totalItems": 28,
"contents": [
{
"id": 636,
"userId": null,
"channelId": 3775168,
"sessionId": "gj4z866us3",
"taskId": 304,
"imageUrl": "http://oss-live-1.videocc.net/audio/video/3775168/b7649358-a8cd-4637-ae8c-f1c60b579395.jpg",
"ocrText": "小王八掉眼泪 你鳖伤心",
"ocrKeyword": "",
"politicalName": "",
"label": "Normal",
"labelDesc": "正常",
"resultType": 1,
"resultTypeDesc": "通过",
"moderationStrategyDesc": "严格审核策略",
"createTime": 1678950744000
},
{
"id": 635,
"userId": null,
"channelId": 3775168,
"sessionId": "gj4z866us3",
"taskId": 304,
"imageUrl": "http://oss-live-1.videocc.net/audio/video/3775168/719a9814-e0eb-4e09-acb3-d183f342dc54.jpg",
"ocrText": "",
"ocrKeyword": "",
"politicalName": "",
"label": "Terror",
"labelDesc": "暴恐",
"resultType": 2,
"resultTypeDesc": "违规",
"moderationStrategyDesc": "严格审核策略",
"createTime": 1678950685000
}
]
},
"success": true
}异常示例
{
"code": 400,
"status": "error",
"requestId": "d310b70bc329403f87f77f9203d50f89.128.16360831552223589",
"error": {
"code": 20001,
"desc": "application not found."
},
"success": false
}Last updated
Was this helpful?