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
Parameters
Parameter Name | Required | Parameter Type | Description |
---|
type | Yes | int | API ID |
userName | Yes | string | Receiver's wxid |
fileName | Yes | string | Display name of the file |
rawtotalsize | Yes | string | Size of the source file, returned by the CDN upload interface |
rawfilemd5 | Yes | string | MD5 hash of the source file, returned by the CDN upload interface |
fileid | Yes | string | File ID, returned by the CDN upload interface |
rawfilekey | Yes | string | Raw file key, returned by the CDN upload interface |
aeskey | Yes | string | AES key, returned by the CDN upload interface |
filecrc | Yes | string | File 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 Name | Parameter Type | Description |
---|
error_code | int | Error code |
description | string | Error Description |
data | json | Business data |