https://api.polyv.net/v2/video/delete-video-exam
{
"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": "Illegal vid",
"data": ""
}
参数值不合法
{
"code": 400,
"status": "error",
"message": "Illegal param: 'xxx' for value: 'xxx'",
"data": null
}
public void testDeleteChapterMarker() throws Exception {
String url = "https://api.polyv.net/v2/video/delete-video-exam";
Map<String, String> params = new HashMap<>();
params.put("userid", userid);
params.put("vid", "a2dc4fxxxxxx72650e7d5c1b8026b13c_a");
params.put("examIds", "179xxxb6cfe");
params.put("ptime", String.valueOf(System.currentTimeMillis()));
params.put("sign", getSign(params, secretkey));
String response = HttpClientUtil.getInstance().sendHttpPost(url, params);
System.out.println(response);
}