private static final Logger log = LoggerFactory.getLogger(VodPlaylistTest.class);
/**
* 修改播放列表信息
* @throws Exception
* @throws NoSuchAlgorithmException
*/
@Test
public void testModifyPlaylist() throws Exception, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String secretKey = super.secretKey;
String userId = super.userId;
String ptime = String.valueOf(System.currentTimeMillis());
//业务参数
String url = "https://api.polyv.net/v2/play-list/update";
String playListId = "1620281719396";
String title = "测试修改列表信息5-6";
String tag = "修改标签";
String description = "测试修改描述";
Map<String, String> requestMap = new HashMap<>();
requestMap.put("userid", userId);
requestMap.put("ptime", ptime);
requestMap.put("playListId", playListId);
requestMap.put("title", title);
requestMap.put("description", description);
requestMap.put("tag", tag);
requestMap.put("sign", VodSignUtil.getSign(requestMap, secretKey));
String response = HttpUtil.postFormBody(url, requestMap);
log.debug("测试修改播放列表信息,{}", response);
//do somethings
}