https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html
模板配置
https请求接口
https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=ACCESS_TOKEN
参数如下
{ "access_token": "28_SXQACqtKY01mhkmu_Y_YzVt3CisMW5bLpXLCHD3seIH4rI-NAQz4ZER0HfmFYLEAM2tYApAWsmYQcnWfj7WYdhh8no6rI2OW6N8VhZj8XfwuUTG0wM9p785uTqxxi1s77ZE0emAKkef_EhQWIPNfAJARYW", "touser": "o1Hha5HRL7FXno3Usah-Izsn5VAo", "template_id": "YnhlWB_gwbx3j0UUrQrgMJV_uZLWzavJRjmTAPXg5co", "page": "index", "data": { "name1": { "value": "夏超chao" }, "thing5": { "value": "订餐截至时间提醒" }, "data3": { "value": "2019-12-13 17:30:00" } }}
access_token 是刚生成的 有效期内
返回错误
{
"errcode": 40001,
"errmsg": "invalid credential, access_token is invalid or not latest hints: [bHFFmuPnRa-g3yteA!]"
}
这个后面也要加你的token..你再试试