Query Complaint Feedback
Updated: 2023-05-11 14:31:52
API Description
1、查询投诉反馈
2、支持https协议
API URL
https://api.polyv.net/live/v4/channel/feedback/list
Request Method
GET
API Constraints
- The API supports both HTTP and HTTPS. HTTPS is recommended to ensure API security. API calls have a frequency limit. See details
Request Parameter Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| appId | true | String | Account appId See details on obtaining keys |
| timestamp | true | Long | Current 13-digit millisecond timestamp, valid for 3 minutes |
| sign | true | String | Signature, a 32-character uppercase MD5 value. The appSecret key used to generate the signature is critical for communication data security. It must never be stored or used directly on the client side. All APIs must be relayed through the customer's own server to the POLYV server for response data. See signature generation rules |
| channelId | false | String | Channel ID. If not provided, queries data under the user account. |
| pageNumber | false | Integer | Page number, default is 1 |
| pageSize | false | Integer | Page size, default is 10, maximum is 1000 |
Example
http://api.polyv.net/live/v4/channel/feedback/list?appId=frlr1zazn3&sign=EB9CF9CD3F473E0C6462E3031E97E7FA&channelId=1965681×tamp=1621843039780
Response Parameter Description
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Status code, same as HTTP status code, used to determine the basic response status |
| status | String | Response result, determined by the business. Returns success on success, error on failure |
| success | Boolean | Whether the response was successful |
| requestId | String | Request ID, a unique UUID generated for each request. Only for troubleshooting and debugging, should not be tied to business logic |
| error | Object | Error information when status code is not 200 See error field description |
| data | Object | Complaint information list See data field description |
Error Field Description
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Error code, used to determine the specific error reason |
| desc | String | Error description, corresponds to error.code |
Data Field Description
| Parameter | Type | Description |
|---|---|---|
| pageNumber | Integer | Current page number |
| pageSize | Integer | Number of items per page |
| totalPages | Long | Total number of pages |
| totalItems | Long | Total number of items |
| contents | Array | Content of the current page See contents field description |
Contents Field Description
| Parameter | Type | Description |
|---|---|---|
| id | Integer | Complaint feedback ID |
| channelId | Integer | Channel ID |
| type | String | Complaint feedback type suggestion: Feedback suggestion complaint: Complaint |
| label | String | Category See label field description |
| content | String | Content |
| imageUrls | Array | List of image URLs |
| createTime | Long | Creation time, 13-digit millisecond timestamp |
| updateTime | Long | Update time, 13-digit millisecond timestamp |
Label Field Value Description
| Value | Meaning |
|---|---|
| stuck | Page stuttering |
| black-screen | Black screen |
| slow-access | Slow access |
| poor-experience | Poor experience |
| play-suggestion | Gameplay suggestion |
| other-feedback | Other feedback |
| porn | Pornographic or vulgar |
| politics | Political |
| drug | Drug-related |
| bloody | Violent or gory |
| scam | Scam |
| other-violations | Other violations |
Java Request Example
For quick integration of the basic code, please download the relevant dependency source code. Click here to download the source code. After downloading, add it to your own source code project. The HttpUtil.java and LiveSignUtil.java in the test cases are included in the downloaded file.
It is strongly recommended to use the Live Java SDK for API integration. The Live Java SDK provides unified encapsulation and optimization for API call logic, exception handling, data signing, and HTTP request thread pools.
/**
* 查询投诉反馈记录
* @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);
}
Response Example
For global system error descriptions, see Global Error Description
Success Example
{
"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
}
Error Example
{
"code": 400,
"status": "error",
"message": "invalid signature.",
"data": ""
}
