地址:https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo
二、获取token接口:https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={appid}&secret={secret}
方式:POST
三、发送模板消息接口:https://api.weixin.qq.com/cgi-bin/message/template/send?access_token={access_token}
方式:POST
参数:
{"touser": "o7Au91YJoP2KS6suEHliAiVNyPYk","template_id": "1IxKZ-R---F_R6yHKVe5oZot4t-CCs8Pmyvz5lmMImc","url": "https://www.cnblogs.com/sjshare/","topcolor": "#FF0000","data": {"first": {"value": "您有新的待支付订单,请尽快支付!","color": "#173177"},"keyword1": {"value": "苏A00000","color": "#173177"},"keyword2": {"value": "普洗","color": "#173177"},"keyword3": {"value": "2019-07-12 14:30:00","color": "#173177"},"keyword4": {"value": "10元","color": "#173177"},"remark": {"value": "有任何疑问请咨询025-00000000","color": "#173177"}}}
转载于:https://www.cnblogs.com/sjshare/p/11175983.html