请求参数:
{ "data" : { "name" : { "color" : "#000000" , "value" : "微信影城影票" }, "remark" : { "color" : "blue" , "value" : "永久有效" } }, "template_id" : "giCW9ftS_f9hvHRWuQKR6-YfTSPEiUZlB84Wrb4acgg" , "topcolor" : "#000000" , "touser" : "oEvlC5rnbiwMIq8C4pug-xmuw_xs" , "url" : "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=22_NyQ4FcXMX4WZkaGl1qC-ZESR89lupzvSm2KcDaob6gtXE6uv9Dr8b7Ogf3OVvca4un2oSciG7kaF9EE2UpPrNCnpbmtIGW4Zix9R8W8xRnp2BOyOJYO92_dCFD8c_D2QmytMDdRv8YhRVjaDDDTaAHAOOE" } |
回执参数:
{ "errcode" : 40001 , "errmsg" : "invalid credential, access_token is invalid or not latest hint: [fgtJva08011503!]" } |
尝试:
1.获取到的“access_token”,在“微信公众平台接口调试工具”中获取关注者列表,能够获取到数据,证明“access_token”有效 2.根据上一步获取到的关注者信息(openid)组装参数发送模板消息,回执40001,排除关注公众号APPID和关注者openid不统一问题