发送小程序消息
请求参数
| 参数名 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
wechat-token | header | string | 必填 | — |
appId | body | string | 必填 | 设备ID |
toWxid | body | string | 必填 | 好友/群的ID |
miniAppId | body | string | 必填 | 小程序ID |
displayName | body | string | 必填 | 小程序名称 |
pagePath | body | string | 必填 | 小程序打开的地址 |
coverImgUrl | body | string | 必填 | 小程序封面图链接 |
title | body | string | 必填 | 小程序标题 |
userName | body | string | 必填 | 归属的用户ID |
请求示例
{
"appId": "",
"toWxid": "",
"miniAppId": "",
"displayName": "",
"pagePath": "",
"coverImgUrl": "",
"title": "",
"userName": ""
}响应示例
{
"ret": 200,
"msg": "操作成功",
"data": {
"toWxid": "***********@chatroom",
"createTime": 1704162674,
"msgId": 769533691,
"newMsgId": 3190424380344821000,
"type": 33
}
}