https://api.polyv.net/v2/video/delete-chapter-marker
{
"code": 200,
"status": "success",
"message": "success",
"data": "success"
}
签名不正确
{
"code":400,
"status":"error",
"message":"the sign is not right",
"data":""
}
时间戳过期
{
"code":400,
"status":"error",
"message":"ptime is too old.",
"data":""
}
vid 不存在
{
"code": 400,
"status": "error",
"message": "video could not find by vid",
"data": ""
}
vid 不合法
{
"code": 400,
"status": "error",
"message": "Illegal vid",
"data": ""
}
内部错误,或传了非法参数程序转换异常
{
"code": 500,
"status": "fail",
"message": "undefined error",
"data": null
}
public void testDeleteChapterMarker() throws Exception {
String url = "http://api.polyv.net/v2/video/delete-chapter-marker";
Map<String, String> params = new HashMap<>();
params.put("userid", userid);
params.put("vid", "a2dc4f25172872650e7d5c1b8026b13c_a");
params.put("timePoints", "1,2");
params.put("ptime", String.valueOf(System.currentTimeMillis()));
params.put("sign", getSign(params, secretkey));
String response = HttpClientUtil.getInstance().sendHttpPost(url, params);
System.out.println(response);
}