main
黄海 7 months ago
parent 86f9711756
commit cf539f7608

@ -31,6 +31,10 @@ public class UploadMaxKBFile {
String authCode = getAuthorization(username, password);
System.out.println("Authorization_CODE:" + authCode);
//写死从浏览器抄出来的authCode
authCode="eyJ1c2VybmFtZSI6ImFkbWluIiwiaWQiOiJmMGRkOGY3MS1lNGVlLTExZWUtOGM4NC1hOGExNTk1ODAxYWIiLCJlbWFpbCI6IiIsInR5cGUiOiJVU0VSIn0:1tQe5R:ciXGy3HMQx-GYYZdV5a-zl8pFBrszW3IsKzZ-lUL_gw";
System.out.println("Authorization_CODE:" + authCode);
//获取知识库上传文档接口
String uploadFile = "D:\\dsWork\\QingLong\\Doc\\MaxKB\\各学校人员和班级统计【结果】.xlsx";
//使用hutool工具箱里面的httpPost功能向指定的接口发起上传文件的请求在Header中携带参数authCode

Loading…
Cancel
Save