收藏夹/cdn下载附件

简要描述

  • 指定fileid、aeskey、文件类型,下载收藏中的CDN附件,以进行转发等操作。

请求URL

  • http://127.0.0.1:8888/api/

请求方式

  • POST

参数

参数名必选类型说明
typeint接口编号
fileidstringfileid
aeskeystringaeskey,长度为32的hex串
fileTypeint文件类型,可参考枚举值
savePathstring文件保存路径

文件类型

文件类型枚举值备注
普通10001一般都使用该类型
视频10002视频文件
大文件10007大于20M的文件

请求示例

 {
  "type": 102,
  "fileid": "305f0201020459305602010402046ef000b302xxxxxxxxxxxxxxxx",
  "aeskey": "d41d8cd98f00b204e9800xxxxxx",
  "fileType": 10001,
  "savePath": "C:\xxx.txt"
 }

返回示例

  {
    "data": {
      "status": 0,
      "desc": "",
    }
  }

返回参数说明

参数名类型说明
error_codeint错误代码
descriptionstring错误描述
datajson业务数据

备注