send-message/forward-image
Description
- Forward picture 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 |
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 |
aeskey | Yes | string | AES key; returned by the CDN upload interface |
filecrc | Yes | string | File checksum; returned by the CDN upload interface |
rawthumbsize | Yes | string | Size of the thumbnail file; returned by the CDN upload interface |
Request Example
{
"type": 10097,
"userName": "filehelper",
"rawtotalsize": "666",
"rawfilemd5": "12345678xxxxxxxxxx90abcdef",
"fileid": "30....",
"aeskey": "12345678xxxxxxxxxx90abcdef",
"filecrc": "123456789",
"rawthumbsize": "100"
}
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 |