1.通过appid、secret换access_token
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=appid&secret=secret
2.通过access_token发送模板消息
https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=access_token
{
"touser":"用户openid",
"template_id":"消息模板id",
"url":"http://www.baidu.com",
"topcolor":"#FF0000",
"data":{"aaa":{ "value":"三亚", "color":"#173177"}}
}
注:openid就是客户关注后就可以看到