删除打点信息
接口描述
1、通过视频id删除单个视频的打点信息
2、接口支持https协议接口URL
http://api.polyv.net/v2/video/delete-chapter-marker请求方式
POST接口约束
请求参数描述
参数名
必选
类型
说明
示例
响应参数描述
参数名
类型
说明
Java请求示例
响应示例
Last updated
1、通过视频id删除单个视频的打点信息
2、接口支持https协议http://api.polyv.net/v2/video/delete-chapter-markerPOSTLast updated
http://api.polyv.net/v2/video/delete-chapter-markervid=1b448be32368e6eb106c31d490c19144_1&sign=37AA7C42A72617593FEE2F5F77F5B6B8325FDDD1&userid=1b448be323&ptime=1620273484026&timePoints=10private static final Logger log = LoggerFactory.getLogger(VodChapterMakerTest.class);
/**
* 删除打点信息
* @throws Exception
* @throws NoSuchAlgorithmException
*/
@Test
public void testDeleteChapterMaker() 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/delete-chapter-marker";
String vid = "1b448be32368e6eb106c31d490c19144_1";
String timePoints = "10";
Map<String, String> requestMap = new HashMap<>();
requestMap.put("userid", userId);
requestMap.put("ptime", ptime);
requestMap.put("vid", vid);
requestMap.put("timePoints", timePoints);
requestMap.put("sign", VodSignUtil.getSign(requestMap, secretKey));
String response = HttpUtil.postFormBody(url, requestMap);
log.debug("测试删除打点信息,{}", response);
//do somethings
}{
"code": 200,
"status": "success",
"message": "success",
"data": "success"
}{
"code": 400,
"status": "error",
"message": "the sign is not right.",
"data": ""
}