Polyv Help Center

Help Center

New Oriental - Get PPT File Information

Updated: 2023-11-14 14:07:19

Interface URL

https://document-2.polyv.net/api/live/user/get

Interface Description

  1. Get PPT file information
  2. The interface supports HTTPS protocol

Supported Format

JSON

Request Method

GET

Request Rate Limit

TRUE

Request Parameters

Parameter Required Type Description
autoId Yes string Record ID
fileId Yes string File ID
userId Yes string User ID

Successful Response JSON Example:

{
    "code": 200,
    "status": "success",
    "message": "",
    "data": {
        "autoId": 1494154,
        "fileId": "98700a88ade105294013703810fcfc13cf7f07e096animate",
        "fileName": "animate.pptx",
        "fileUrl": "http://doc-2.polyv.net/sources/20201028/98700a88ade105294013703810fcfc13cf7f07e096animate.pptx",
        "fileType": ".pptx",
        "totalPage": 2,
        "channelId": "cf7f07e096",
        "status": "normal",
        "createTime": 1603873152000,
        "convertType": "animate",
        "smallImagesZip": "http://doc-2.polyv.net/images/2020/10/98700a88ade105294013703810fcfc13cf7f07e096animate/smallImages.zip",
        "imagesZip": "http://doc-2.polyv.net/images/2020/10/98700a88ade105294013703810fcfc13cf7f07e096animate/images.zip",
        "htmlUrlZip": "http://doc-2.polyv.net/images/2020/10/98700a88ade105294013703810fcfc13cf7f07e096animate/98700a88ade105294013703810fcfc13cf7f07e096animate.zip"
    }
}

Failed Response JSON Example:

Invalid record ID

{
    "code": 400,
    "status": "error",
    "message": "autoId is illegal",
    "data": ""
}

Field Description

Parameter Description
code Request status response code
status Request status
message Error message
data Empty on request failure, success information on request success
data.autoId Record ID
data.fileId File ID
data.status PPT status: "normal" - normal, no need to re-upload the file, an identical PPT has already been uploaded successfully, can directly enter polling. "waitConvert" - converting PPT, an identical file is already being converted, directly enter polling. "waitUpload" - waiting for upload, proceed to upload to Alibaba Cloud. "failConvert" - conversion failed
data.fileUrl File URL
data.fileType File type
data.totalPage Total number of pages
data.convertType Conversion type
data.smallImagesZip Small image ZIP URL
data.imagesZip Large image ZIP URL
data.htmlUrlZip Animation file ZIP URL
data.fileName File name

Java Request Example

public static void test() {
        String url = "https://document-2.polyv.net/api/live/user/get";

        Map<String, String> params = new HashMap<>();
        params.put("fileId", "d8700a88ade105294013703810fcfc13cf7f07e096animate");
        params.put("autoId", "1492485");
        params.put("userId", "cf7f07e096");
        // 调用Polyv的httpClient工具类发送请求
        String content = HttpClientUtil.getInstance().sendHttpPost(url, params);
        System.out.println(content);
    }
联系客服,在线咨询