删除视频问答

接口URL

https://api.polyv.net/v2/video/delete-video-exam

接口说明

删除视频问答

支持格式

JSON

请求方式

POST

请求参数

参数名必选类型及范围说明

userid

string

用户ID

ptime

long

当前时间的毫秒级时间戳(13位),3分钟内有效

sign

String

签名,为40位大写的SHA1值【详见签名生成规则

vid

string

视频ID

examIds

string

问答ID,多个以逗号分隔,如果不传则删除视频的所有问答题目

返回正确结果JSON示例

{
    "code": 200,
    "status": "success",
    "message": "success",
    "data": "success"
}

返回错误结果JSON示例

签名不正确
{
	"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
}

字段说明

字段说明

code

返回码

status

返回状态

message

返回信息

data

操作结果

java请求示例:

    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);
    }

Last updated