🤠CDN文件
暂时不支持大文件上传 仅支持30M内文件
上传CDN文件
POST
http://127.0.0.1:8898/v1/LuaApiCaller?funcname=UploadFileByCDN&timeout=10&wxid=wxid_xxxxxx
POST JSON
{"ToUserName":"8888154792@chatroom","FilePath":"DemoToy.zip"}
返回 CDN文件XML信息
{ "Ret": 0, "XmlStr": "<appmsg>xxxxx</appmsg>" }
1.5.0以后版本的接口
POST
http://127.0.0.1:8898/v1/WeChat/CdnUpload?wxid=wxid_xxxxxxxx
POST JSON
{ "FileType":5, "ToUserName":"7188154790@chatroom", "FileUrl":"http://192.168.198.107:8099/file/RSTBot_1.5.1_windows_amd64.zip", "FileName":"RSTBot_1.5.1_windows_amd64.zip" }//网络文件发送
{ "FileType":5, "ToUserName":"7188154790@chatroom", "FilePath":"./RSTBot_1.5.1_windows_amd64.zip", "FileName":"RSTBot_1.5.1_windows_amd64.zip" }//本地文件发送
返回 CDN文件XML信息 转发任意群聊即可
下载CDN文件
POST
http://127.0.0.1:8898/v1/LuaApiCaller?funcname=DownloadFileByCDN&timeout=10&wxid=wxid_xxxxxx
POST JSON
{"XmlStr":"<appmsg appid=\"\" sdkver=\"0\">1.3.8.hop6000158290502@cdn_304e020100044730450201000204672d5b6e02033d11fe0204c9e656700204615ea26a0420777869645f37306876306f656b3277736b313231325f313633333539313931300204010400070201000400_2f1a48095ab861de94f5696b4e28fd04_1hop304e020100044730450201000204672d5b6e02033d11fe0204c9e656700204615ea26a0420777869645f37306876306f656b3277736b313231325f3136333335393139313002040104000702010004002f1a48095ab861de94f5696b4e28fd040<overwrite_newmsgid>8397160119547900409</overwrite_newmsgid>v1_vqaqu+vpFAoAPCQpPBRp3oGYjrko+D+50MJ3rNB1XfgnwDHxes+auQea/y0Fz5rParGpwduJqO7lCEWCjY27BM3lHBeUQ5/AciLcdF3NGjq7z7XEI1ecmWZLSlB8e1WzL9ovhmewF/3ghj1IWjqEozVodFf8fX+U2StovV2nFo+ii9gC/doKDudNinVhVggT3x4bTFJNGGXKXtz9Zlf6I6y4hquUfc650e0e686b51df9eb4080ae719dc6awxid_elv1n0btkywy1201","SavePath":"./test0000.zip"}
1.5.0以后版本的接口
POST
http://127.0.0.1:8898/v1/WeChat/CdnDownload?wxid=wxid_xxxxxxxx
POST JSON
{ "FileType":5, "FileCdnUrl":"3057020100044b304902010002041acd160b02032f7dd10204ec1bbade0204643f7d82042430633266386234352d366166632d346534392d616631372d6163646535363064333461650204012818020201000405004c56f900", "FileAesKey":"981b94852740faac421b8457fb944818", "FileName":"2.zip" }//保存到本地文件
省略FileName字段 数据将以文件流到方式返回
下载CDN小视频
1.5.0以后版本的接口
POST
http://127.0.0.1:8898/v1/WeChat/CdnDownload?wxid=wxid_xxxxxxxx
POST JSON
{ "FileType":4, "FileCdnUrl":"3057020100044b304902010002041acd160b02032f7dd10204ec1bbade0204643f7d82042430633266386234352d366166632d346534392d616631372d6163646535363064333461650204012818020201000405004c56f900", "FileAesKey":"981b94852740faac421b8457fb944818", "FileName":"2.mp4" }//保存到本地文件
省略FileName字段 数据将以文件流到方式返回
Last updated