目录1、发送get请求带请求头2、发送post请求带请求头带参数3、发送请求拼接请求头获取文件信息接口4、发送带文件流的请求保存接口1、发送get请求带请求头curl-X GEThttp://localhost:8080/onlinePreviewCallbackApiManagement/v1/3rd/file/info-Haccept: */*-HX-Weboffice-File-Id: 1232、发送post请求带请求头带参数curl-X POSThttp://localhost:8080/onlinePreviewCallbackApiManagement/v1/3rd/file/view/notify-Haccept: */*-HUser-Agent: 111-HX-Weboffice-File-Id: 222-HX-Weboffice-Token: 333-HContent-Type: application/json-d{\body\:{\active\:0,\counts\:0,\detail\:\string\,\file_id\:\string\,\filesize\:0,\filetype\:\string\,\maxcounts\:0,\operated_time\:0,\permission\:\string\,\result\:\string\,\userid\:\string\},\cmd\:\string\}如果是参数接收的就不需要body这个curl-X POSThttp://localhost:8080/onlinePreviewCallbackApiManagement/v1/3rd/file/view/notify-Haccept: */*-HUser-Agent: 111-HX-Weboffice-File-Id: 222-HX-Weboffice-Token: 333-HContent-Type: application/json-d{\active\:0,\counts\:0,\detail\:\string\,\file_id\:\string\,\filesize\:0,\filetype\:\string\,\maxcounts\:0,\operated_time\:0,\permission\:\string\,\result\:\string\,\userid\:\string\,\cmd\:\string\}3、发送请求拼接请求头获取文件信息接口curl-HContent-Type: application/json-HWps-Docs-Date: Wed, 29 May 2024 02:44:17 GMT-HWps-Docs-Authorization: WPS-4 M3YC3UUDR4ZRZDSO:d902ebc2e205d1d03b487ddd85d24d30caf3fd975c4519907ef36deb041f2924-X GEThttp://localhost/open/api/preview/v1/files/111111/link4、发送带文件流的请求保存接口curl-X POST http://localhost:10021/appfile/v1/3rd/file/save-Hx-weboffice-file-id: 1779239955489-Hx-weboffice-save-type: auto-Ffile/data/建发集团云平台扩容建设配套服务器采购项目合同-20260514.docx测试可行后期需要可以照此发送你的请求。
