/**
* 测试推送频道卡片
* @throws IOException
* @throws NoSuchAlgorithmException
*/
@Test
public void testPushChannelCardPush() 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/card-push/push";
//http 调用逻辑
Map<String, String> requestMap = new HashMap<>();
requestMap.put("appId", appId);
requestMap.put("timestamp", timestamp);
requestMap.put("channelId", "2477096");
Map<String, String> paramMap = new HashMap<>();
paramMap.put("cardPushId", "1282");
requestMap.put("sign", LiveSignUtil.getSign(requestMap, appSecret));
url = HttpUtil.appendUrl(url, requestMap);
String response = HttpUtil.postFormBody(url, paramMap);
log.info("测试推送频道卡片成功,返回值:{}", response);
}