From 220d20f1dcb09410a1cc44fde1aa4417c78c186f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=B1=A0?= <98259561+whitechi73@users.noreply.github.com> Date: Fri, 3 Nov 2023 17:54:22 +0800 Subject: [PATCH] =?UTF-8?q?=E3=82=AD=E3=83=A3=E3=83=83=E3=82=B7=E3=83=A5?= =?UTF-8?q?=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF=E3=83=88=E3=83=AA=E3=81=B8?= =?UTF-8?q?=E3=81=AE=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=AE=E3=82=A2?= =?UTF-8?q?=E3=83=83=E3=83=97=E3=83=AD=E3=83=BC=E3=83=89=E3=82=92=E3=82=B5?= =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=88=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/shamrock.md | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/docs/api/shamrock.md b/docs/api/shamrock.md index c5117b2..e0ee4bd 100644 --- a/docs/api/shamrock.md +++ b/docs/api/shamrock.md @@ -3,6 +3,24 @@ title: Shamrock 接口 icon: feather-alt --- +## 上传文件到缓存目录 + +### API 端点 + +`/upload_file` + +### 参数 + +以**file**格式上传文件,不要使用**binary**。 + +### 响应 + +```json +{ + "file": "/scard/Android/data/com.tencent.mobileqq/Tencent/Shamrock/xxxx" +} +``` + ## 下载文件到缓存目录 ### API 端点 @@ -13,7 +31,8 @@ icon: feather-alt | 字段 | 类型 | 必须 | 说明 | 默认值 | | ------ | ------- | ---- | -------------------- | ------ | -| url | string | 是 | 下载地址 | | +| url | string | 否 | 下载地址 | | +| base64 | string | 否 | 文件base64内容 | | | thread_cnt | int32 | 否 | 下载的线程数量 | | | headers | `string` or `array` | 否 | 请求头 | | @@ -99,16 +118,6 @@ User-Agent=YOUR_UA[\r\n]Referer=https://www.baidu.com | start | int32 | 否 | 开始的行 | | | recent | bool | 否 | 是否只显示最近的日志 | false | -### 响应 - -```json -{ - "status": "ok", - "retcode": 0, - "data": 1696749716155 -} -``` - ## 关闭Shamrock ### API 端点