问题1.接口文档地址:https://solution.wps.cn/docs/convert/pdf-to-docs.html
根据接口要求,"WPS-2:" + app_id + ":" + sha1( app_key + Content-Md5 + Content-Type + DATE)测试结果返回问题如下:
resultStr::{"code":30003,"message":"InvalidSignature","hint":"signature not match. expect: e7a1cf00a34da11071bf21cb1c77bd69c0d9c280, actual: 9bac59df9f21eaaaa69f332cf109feafec9c48ce","extra":""}
"appkey"+c00ec6be0315e58a87b518643aa999abapplication/json;charset=utf-8Thu, 15 May 2025 01:13:49 GMT
代码如下:
String contentType = "application/json;charset=utf-8";
JSONObject jsonObject = new JSONObject();
jsonObject.put("url","https://solution.wps.cn/api/developer/v1/office/pdf/convert/to/docx");
String contentMd5 = MD5Utils.md5Hex(jsonObject.toString().getBytes());
String s1 = hashCode("SHA-1", APP_KEY + contentMd5 + contentType + rfc1123DateStr);
问题2.Body 参数中url下载地址是什么,是我们提供url方式给你们接口调用下载吗?有没有文档直接上传的接口 麻烦帮忙解答下,谢谢!