private static final Logger log = LoggerFactory.getLogger(VodVideoSubtitleTest.class);
/**
* 删除字幕
*/
@Test
public void testDeleteSubtitle() throws Exception, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String secretKey = super.secretKey;
String userid = super.userId;
String ptime = String.valueOf(System.currentTimeMillis());
//业务参数
String url = String.format("http://api.polyv.net/v2/video/%s/srt/delete",userid);
String vid = "1b448be3230fa05b4d2d0003bf5a8ad0_1";
String ranks = "1";
Map<String, String> requestMap = new HashMap<>();
requestMap.put("ptime", ptime);
requestMap.put("vid", vid);
requestMap.put("ranks",ranks);
requestMap.put("sign", VodSignUtil.getSign(requestMap, secretKey));
String response = HttpUtil.postFormBody(url, requestMap);
log.debug("测试删除字幕,{}", response);
//do somethings
}