请求地址:
https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=我的access_token
请求体:
{
"touser": "我的touser",
"template_id": "我的template_id",
"data": {
"thing18": {
"value": "飞机送"
},
"thing8": {
"value": "一堆垃圾"
},
"phrase21": {
"value": "配送中"
},
"thing11": {
"value": "直接进行空投"
},
"thing2": {
"value": "我就不明白,为什么我不能过?"
}
}
}
响应体:
{"errcode":48001,"errmsg":"api unauthorized rid: 5fead654-691cead1-7c69f92d"}
这边已经确认把小程序的相关权限授权给第三方平台,请尽快处理一下
你好,请参考接口文档https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Mini_Programs/subscribe_template/subscribeMessage.send.html#%E8%AF%B7%E6%B1%82%E5%9C%B0%E5%9D%80正确填写第三方平台接口调用令牌authorizer_access_token哈,不是component_access_token哦。此外,后面权限相关的接口问题可以参考https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Before_Develop/third_party_authority_instructions_troubleshooting.html先进行自助排查哈