https://document-2.polyv.net/api/live/user/get
1、获取PPT文件信息
2、接口支持https协议
{
"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"
}
}
{
"code": 400,
"status": "error",
"message": "autoId is illegal",
"data": ""
}
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);
}