send-message/forward-file

Description

  • Forward File message, it is necessary to download it via the CDN first and then upload the CDN's response to send it.

Request URL

  • http://127.0.0.1:8888/api/

Request Method

  • POST

Parameters

Parameter NameRequiredParameter TypeDescription
typeYesintAPI ID
userNameYesstringReceiver's wxid
fileNameYesstringDisplay name of the file
rawtotalsizeYesstringSize of the source file, returned by the CDN upload interface
rawfilemd5YesstringMD5 hash of the source file, returned by the CDN upload interface
fileidYesstringFile ID, returned by the CDN upload interface
rawfilekeyYesstringRaw file key, returned by the CDN upload interface
aeskeyYesstringAES key, returned by the CDN upload interface
filecrcYesstringFile checksum value, returned by the CDN upload interface

Request Example

 {
  "type": 10098,
  "userName": "filehelper",
  "fileName": "111.txt",
  "rawtotalsize": "7777",
  "rawfilemd5": "1234567890abcdef1234567890abcdef",
  "fileid": "30....",
  "rawfilekey": "xdfad...",
  "aeskey": "1234567890abcdef1234567890abcdef",
  "filecrc": "123456789"
 }

Return Example

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

Return Parameter Description

Parameter NameParameter TypeDescription
error_codeintError code
descriptionstringError Description
datajsonBusiness data

Remark