private static final Logger log = LoggerFactory.getLogger(VodVideoCategoryTest.class);
/**
* 修改分类设置
*/
@Test
public void testUpdateVideoCategoryProfile() throws Exception, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String secretKey = super.secretKey;
String userId = super.userId;
String ptime = String.valueOf(System.currentTimeMillis());
//业务参数
String url = "http://api.polyv.net/v2/video/" + userId + "/updateCataProfile";
String cataId = "1617160372987";
String isSettings = "Y";
String keepSource = "0";
String encrypt = "1";
String hlsLevel = "app";
String isEdu = "1";
String encodeAac = "1";
Map<String, String> requestMap = new HashMap<>();
requestMap.put("userid", userId);
requestMap.put("ptime", ptime);
requestMap.put("cataid", cataId);
requestMap.put("isSettings", isSettings);
requestMap.put("keepSource", keepSource);
requestMap.put("encrypt", encrypt);
requestMap.put("hlslevel", hlsLevel);
requestMap.put("isEdu", isEdu);
requestMap.put("encode_aac", encodeAac);
requestMap.put("sign", VodSignUtil.getSign(requestMap, secretKey));
String response = HttpUtil.postFormBody(url, requestMap);
log.debug("测试修改分类设置,{}", response);
//do somethings
}