Determine if a Video's PPT Has an Image ZIP Package
Updated: 2022-05-16 10:08:41
Interface URL
http://api.polyv.net/v2/video/ppt/zip/exist
Interface Description
Determine if a video's PPT has an image ZIP package.
Supported Format
JSON
Request Method
GET
Request Limit
TRUE
Request Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| userid | Yes | string | User ID |
| ptime | Yes | string | Current time in milliseconds (13 digits), valid for 3 minutes |
| vid | Yes | string | Video ID |
| sign | Yes | string | Signature, a 40-character uppercase SHA1 value |
JSON Example
{
code: 200,
status: "success",
message: "",
data: {
isExist: "Y",
zipUrl:"http://www.polyv.net/1.zip"
}
}
{
code: 400,
status: "success",
message: "success",
data: "视频VID或者用户ID不能为空."
}
{
code: 400,
status: "success",
message: "success",
data: "video ppt not found."
}
Field Description
| Field | Description |
|---|---|
| status | Success/failure status |
| code | Success/failure code |
| message | Success/failure message |
| data | Success response object |
| data.isExist | Whether the PPT image ZIP package exists: 'Y' for yes, 'N' for no |
| data.zipUrl | PPT image ZIP package URL (only available when isExist='Y') |
Signature Rules
Arrange the request parameters (excluding sign) in dictionary order of parameter names (connect parameter names and values with "=", and join different parameters with "&"), then append the secretkey value at the end. Generate a 40-character uppercase SHA1 value as the sign.
Below is an example process:
1. Arrange the request parameters in dictionary order of parameter names as:
ptime="1476753635000";
userid="8f8482aaab"
vid="8f8482aaab8fe7ea12e3314a11a061fc_8";
2. Concatenate the string Use "&" to connect parameter names and values, and append the secretkey value at the end (the value in this example is AiDQw1mAmi), as follows:
ptime=1476753635000&userid=8f8482aaab&vid=8f8482aaab8fe7ea12e3314a11a061fc_8AiDQw1mAmi
3. Generate the signature sign
sign is a 40-character uppercase SHA1 value:
166411CB6BA305B3F06747B9BFBD32E8D9432774
