小程序发送模板消息"errcode":48001,"errmsg":"api unauthoriz?

小程序 文章 2022-01-06 17:20 17 0 全屏看文

小程序发送模板消息"errcode":48001,"errmsg":"api unauthoriz?The applet sends the template message "errcode":48001,"errmsg":"api unauthoriz?

小程序发送模板消息"errcode":48001,"errmsg":"api unauthoriz?

【请求地址】: https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=52_uJocQOBDLv9weuaCp1wcshflZ12n_ZYcf9agZMBvzKQA-7Ni032VGr4jxv1BczIgxVdNxpNA88V9xQlckKzb-vGLzCtdGo24JXVEGy1XdQc6LqFxmbho4TSN09_Xrn1H5xxSddEPyKxVK15UTMSbAGAEXD

【请求参数】:{"touser":"ocMZv5JtijRlqiRqFYzltbz5t70U","template_id":"xlAMOo-85eaaB5gmE0gAufdF1OqF_8h0AFiWuffU21o","miniprogram":{"appid":"wxcbe3c5432fc51ee5","pagepath":"/pages/appointment/appointment_list"},"data":{"time16.DATA":{"value":"预约时间"},"thing34.DATA":{"value":"咨询地点"},"phone_number4.DATA":{"value":"18868812345"},"thing10.DATA":{"value":"备注"}}}

【错误信息】:{"errcode":48001,"errmsg":"api unauthorized rid: 61d6ac40-1af8060e-2957a958"}

【请求地址】: https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=52_uJocQOBDLv9weuaCp1wcshflZ12n_ZYcf9agZMBvzKQA-7Ni032VGr4jxv1BczIgxVdNxpNA88V9xQlckKzb-vGLzCtdGo24JXVEGy1XdQc6LqFxmbho4TSN09_Xrn1H5xxSddEPyKxVK15UTMSbAGAEXD 【请求参数】:{"touser":"ocMZv5JtijRlqiRqFYzltbz5t70U","template_id":"xlAMOo-85eaaB5gmE0gAufdF1OqF_8h0AFiWuffU21o","miniprogram":{"appid":"wxcbe3c5432fc51ee5","pagepath":"/pages/appointment/appointment_list"},"data":{"time16.DATA":{"value":"预约时间"},"thing34.DATA":{"value":"咨询地点"},"phone_number4.DATA":{"value":"18868812345"},"thing10.DATA":{"value":"备注"}}} 【错误信息】:{"errcode":48001,"errmsg":"api unauthorized rid: 61d6ac40-1af8060e-2957a958"}

回答:

brave:

https://api.weixin.qq.com/cgi-bin/message/template/send 这个接口是公众号(服务号)的模板消息,不是小程序的

拾忆:

你确定是小程序?小程序的模板消息早下架了

果壳~:模板消息下架了??小程序后台订阅消息那边不是还可以申请消息模板吗?
peng:

提示没有接口权限?什么类型的小程序?或者时第三方平台模式小程序没有授权你这个api?

果壳~:教育信息服务
peng:上面brave回复了,可能你接口搞错了。

-EOF-