private static final Logger log = LoggerFactory.getLogger(ChannelShareTest.class);
@Test
public void testUpdateChannelShare() 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/share/update";
//http 调用逻辑
Map<String, String> requestMap = new HashMap<>();
requestMap.put("appId", appId);
requestMap.put("timestamp", timestamp);
requestMap.put("channelId", "2567762");
requestMap.put("shareBtnEnable", "Y");
requestMap.put("titleType", "custom");
requestMap.put("weixinShareTitle", "保利威测试微信分享标题");
requestMap.put("weixinShareDesc", "保利威测试微信分享描述");
requestMap.put("weixinShareCustomUrl", "httPs://polyv.com");
requestMap.put("sign", LiveSignUtil.getSign(requestMap, appSecret));
String response = HttpUtil.get(url,requestMap);
log.info("测试设置频道分享设置,返回值:{}", response);
}