https://api.polyv.net/live/v4/channel/feedback/list
http://api.polyv.net/live/v4/channel/feedback/list?appId=frlr1zazn3&sign=EB9CF9CD3F473E0C6462E3031E97E7FA&channelId=1965681×tamp=1621843039780
强烈建议您使用直播Java SDK完成API的功能对接,直播Java SDK 对API调用逻辑、异常处理、数据签名、HTTP请求线程池进行了统一封装和优化。
/**
* 查询投诉反馈记录
* @throws IOException
*/
@Test
public void testGetFeedbackList() throws IOException, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String appId=super.appId;
String appSecret=super.appSecret;
String userId = super.userId;
String timestamp=String.valueOf(System.currentTimeMillis());
//业务参数
String url = "https://api.polyv.net/live/v4/channel/feedback/list";
String channelId = "1965681";
Integer pageNumber = 1;
Integer pageSize = 10;
//http 调用逻辑
Map<String,String> requestMap = new HashMap<>();
requestMap.put("appId", appId);
requestMap.put("timestamp",timestamp);
requestMap.put("channelId",channelId);
requestMap.put("pageNumber", String.valueOf(pageNumber));
requestMap.put("pageSize", String.valueOf(pageSize));
requestMap.put("sign",LiveSignUtil.getSign(requestMap, appSecret));
String response = HttpUtil.get(url, requestMap);
}
{
"code": 200,
"status": "success",
"requestId": "fe9b9752528b4a1c99fa25d361b0e36c.70.16609029221005237",
"data": {
"pageNumber": 1,
"pageSize": 10,
"totalPages": 1,
"totalItems": 2,
"contents": [
{
"id": 87,
"channelId": 1965681,
"type": "suggestion",
"label": "poor-experience",
"content": "123",
"imageUrls": [
"http://liveimages.videocc.net/watch-feedback/bbca707cc8/3221535/1659346624591_XWMPn9.jpeg",
"http://liveimages.videocc.net/watch-feedback/bbca707cc8/3221535/1659346624873_XSaKzQ.jpeg",
"http://liveimages.videocc.net/watch-feedback/bbca707cc8/3221535/1659346624890_31kGzs.jpeg"
],
"contact": "166",
"createTime": 1659346281000,
"updateTime": 1659346281000
},
{
"id": 88,
"channelId": 2880184,
"type": "suggestion",
"label": "poor-experience",
"content": "123",
"imageUrls": [
""
],
"contact": "166",
"createTime": 1659346465000,
"updateTime": 1659346465000
}
]
},
"success": true
}
{
"code": 400,
"status": "error",
"message": "invalid signature.",
"data": ""
}