Polyv Help Center

Help Center

Delete Video Timestamp Data

Updated: 2022-05-23 19:02:59

Interface URL

https://api.polyv.net/v2/video/delete-chapter-marker

Interface Description

Delete video timestamp data

Supported Format

JSON

Request Method

POST

Request Parameters

Parameter Required Type and Range Description
userid Yes string User ID
ptime Yes long Current time in milliseconds (13 digits), valid within 3 minutes
sign Yes String Signature, a 40-character uppercase SHA1 value [See Signature Generation Rules]
vid Yes string Video ID
timePoints No string Timestamps in seconds, separated by commas, e.g., "1,2". If not provided, all timestamps for the video will be deleted

Example of Correct JSON Response

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

Example of Error JSON Response

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

Field Description

Field Description
code Return code
status Return status
message Return message
data Operation result

Java Request Example:

    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);
    }
联系客服,在线咨询