# 推送消息
# 简要描述
- 推送消息
# 请求URL
/push/msg/send
# 请求方式
- POST
- Content-Type application/json;charset=UTF-8
# 参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
appId | 是 | string | 应用ID |
templateId | 是 | string | 模版ID |
templateUrl | 是 | string | 模版消息跳转地址 |
userId | 是 | string | 用户ID |
templateData | 是 | objest | 模版数据 |
# 请求示例
{
"appId": "wxe2718078262e8965",
"templateId": "1rrumRqlArsDnwcz2rQ2gZKVOL-0LcBgPn6TRxJrte0",
"templateData": {
"thing1": "咖啡",
"amount2": "1.5",
"thing3": "宿舍牛奶机",
"time4": "2024-04-27 15:33:15",
"thing5": "娃哈哈饮用水"
},
"templateUrl": "www.baidu.com",
"userId": "156"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
# 返回示例
{
"msg": "操作成功",
"code": 200
}
1
2
3
4
2
3
4
# 返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
msg | string | 响应msg |
code | int | 响应code |