private static final Logger log = LoggerFactory.getLogger(VodSubAccountTest.class);
/**
* 修改分类名称
* @throws Exception
* @throws NoSuchAlgorithmException
*/
@Test
public void testSubModifyCategoryName() throws Exception, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String appId = super.appId;
String appSecret = super.appSecret;
String timestamp = String.valueOf(System.currentTimeMillis());
//业务参数
String url = "http://api.polyv.net/v3/category/update-info";
String cateId = "1617850556356";
String cateName = "测试修改分类名称";
Map<String, String> requestMap = new HashMap<>();
requestMap.put("appId", appId);
requestMap.put("timestamp", timestamp);
requestMap.put("cateId", cateId);
requestMap.put("cateName", cateName);
requestMap.put("sign", VodSignUtil.getSignMd5(requestMap, appSecret));
String response = HttpUtil.postFormBody(url, requestMap);
log.debug("测试修改分类名称,{}", response);
//do somethings
}