private final Logger log = LoggerFactory.getLogger(getClass());
/**
* 删除观众信息
* @throws IOException
* @throws NoSuchAlgorithmException
*/
@Test
public void deleteViewerTest() throws IOException, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String appId = super.appId;
String appSecret = super.appSecret;
String timestamp = String.valueOf(System.currentTimeMillis());
String viewerUnionId = "2_v378gn997yovtl3p8h77db9e224t6hg9";
//业务参数
String url = "https://api.polyv.net/v4/user/viewer-record/delete";
//http 调用逻辑
Map<String, String> requestMap = new HashMap<>();
requestMap.put("appId", appId);
requestMap.put("timestamp", timestamp);
requestMap.put("viewerUnionId", viewerUnionId);
requestMap.put("sign", LiveSignUtil.getSign(requestMap, appSecret));
String response = HttpUtil.get(url, requestMap);
log.info("测试删除观众信息成功:{}", response);
//do somethings
}