接口文档开发者博客官网首页

转发图片

POSThttps://api.wechatapi.net/message/forwardImage

接口说明

#### 注意
若通过发送图片消息获取cdn信息后可替换xml中的aeskey、cdnthumbaeskey、cdnthumburl、cdnmidimgurl、length、md5等参数来进行转发

请求参数

参数名位置类型必填说明
wechat-tokenheaderstring必填
appIdbodystring必填

设备ID

toWxidbodystring必填

好友/群的ID

xmlbodystring必填

文件消息的xml

请求示例

Request JSON
{
  "appId": "",
  "toWxid": "",
  "xml": ""
}

响应示例

Response JSON
{
  "ret": 200,
  "msg": "操作成功",
  "data": {
    "toWxid": "***********@chatroom",
    "createTime": 0,
    "msgId": 769533749,
    "newMsgId": 7003061792458481000,
    "type": null,
    "aesKey": "294774c8ac2ca8f8114e4d58d2ba78a5",
    "fileId": "3057020100044b304902010002043904752002032f7d6d02046bb5bade020465937656042436626431373937632d613430642d346137662d626230352d3832613335353935333130630204051818020201000405004c543d00",
    "length": null,
    "width": null,
    "height": null,
    "md5": null
  }
}
接入 转发图片 接口

注册即可获取 appId 与调用凭证,支持在线调试。

免费注册在线调试

本模块其他接口