private static final Logger log = LoggerFactory.getLogger(ChannelWarmUpTest.class);
/**
* 修改暖场视频
* @throws IOException
*/
@Test
public void testUpdateWarmUpVideo() throws IOException, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String appId = super.appId;
String appSecret = super.appSecret;
String timestamp = String.valueOf(System.currentTimeMillis());
//业务参数
String channelId = "2202970";
String url = "http://api.polyv.net/live/v2/channels/"+channelId+"/update";
String warmUpFlv = "http://mpv.videocc.net/d212a37499/b/d212a37499d8190f063bcfc5642fa82b_2.mp4";
//http 调用逻辑
Map<String,String> requestMap = new HashMap<>();
requestMap.put("appId", appId);
requestMap.put("timestamp",timestamp);
requestMap.put("warmUpFlv",warmUpFlv);
requestMap.put("sign",LiveSignUtil.getSign(requestMap, appSecret));
String response = HttpUtil.postFormBody(url, requestMap);
log.info("测试修改暖场视频接口返回值:{}",response);
}