第一步获取token
第二步新增临时素材( media/upload接口),上传一个视频 返回内容
{
"item": [],
"media_id": "i1BfGF_PSJgsdC0otBDTDQlvq71dn_ccS64vOTDPevYGyvGRUnP2L2Ogp3X2kTY-",
"created_at": 1608618789,
"type": "video"
}
第三步骤根据文档 将视频素材的ID发给(https://api.weixin.qq.com/cgi-bin/media/uploadvideo) 接口
发送路径+内容为:
https://api.weixin.qq.com/cgi-bin/media/uploadvideo?access_token=40_y2a3X9cp0bU6vHFASeFILpWihu_aCtyJwo3i5BZGeNbLo_Uzrma2mXfbEYcqMqYNNcReoH84q34jZDCu4i85mjEtI31upT_a6X96_z_LcnnMDdKQiqHm6MAGCv2n8XLhdsBurJdlQpRHtJslCDAdAGAOPM {"media_id":"i1BfGF_PSJgsdC0otBDTDQlvq71dn_ccS64vOTDPevYGyvGRUnP2L2Ogp3X2kTY-","description":"微信公众号API视频开发","title":"视频图文的标题"}
u收到内容:
{"type":"video","media_id":"Lu_jHUdK54mNCKFo-oDVKHSJMJY2ZazCgZccxFrzDVyBG8FIZwbJdtxH7V_dp0Ds","created_at":1608618790,"item":[]}
第四步,将返回的ID 通过预览接口(https://api.weixin.qq.com/cgi-bin/message/mass/preview)发送
发送路径+ 内容
https://api.weixin.qq.com/cgi-bin/message/mass/preview?access_token=40_y2a3X9cp0bU6vHFASeFILpWihu_aCtyJwo3i5BZGeNbLo_Uzrma2mXfbEYcqMqYNNcReoH84q34jZDCu4i85mjEtI31upT_a6X96_z_LcnnMDdKQiqHm6MAGCv2n8XLhdsBurJdlQpRHtJslCDAdAGAOPM {"touser":"o5hmdwN-vmOodaAKOh8nSIxsFuf4","msgtype":"mpvideo","mpvideo":{"media_id":"Lu_jHUdK54mNCKFo-oDVKHSJMJY2ZazCgZccxFrzDVyBG8FIZwbJdtxH7V_dp0Ds"}}
返回内容
{"errcode":0,"errmsg":"preview success"}
然后手机收到消息,打开以后显示参数失败:
链接为
https://mp.weixin.qq.com/s?__biz=MzIzMTUyMTI1NA==&tempkey=MTA5Ml93NG1xKzZNaFdmUzdEbUxMSDZYRHZNOGhJNnlvRmZiS0pfa1IwdXlsOWx1bjBUa2MtNDJ2RGJUM3Z5Yi1PT1N1aTNoTlBoN1A4LTJQZXF3Nw%3D%3D&cdn_videoid=XXIzTtMqCxwOaawoE91+VGEfteeYNEmGdfUp/9s/mO0yUdd2k+IrwgqQ/7ezI2Uv/oRa+Vl/V1cdtMuMD1jtLw==&scene=0&xtrack=1&previewkey=XrontFfvu3fLbfJbK7Q6pcNS9bJajjJKzz%252F0By7ITJA%253D
通过在同类问题搜索未找到答案及解决办法
发生时间在2020/12/22 14:33:10
开发者ID(AppID) wx3bd5bca46dc6d8ac
同问,请问楼主解决了吗?