09月22日, 2014 2322次
【1】先拿到token https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wxe84e2343e23c8273&secret=1647102er70b757e84c6676 appid= wxe84e2343e23c8273 &secret= 1647102er70b757e84c6676 【2】 有token 根据openid 可以post https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=GM5_X6L3f2kl6BniJ3jrhw781Jua00XvS8lC_j9Ab2s-pEwX77r8Bt8Jf2fObf24EVa5OHo1qajxa8A1AtVyZ8fy5rg0YsBMUyWX_kIZylZqxU7NfH_cMYYwX9iJfJLVjABAACM { "touser":"oUaUNwM4GPNqRpip_nAI73-7AxW4", "template_id":"B07-hXxaF_6_snHOWbfQc7E3kAsCM_MfmoQpfmNC314", "url":"http://www.baidu.com", "topcolor":"#FF0000", "data":{ "Pingou_Action": { "value":"opopop111", "color":"#173177" }, "Weixin_ID": { "value":"opopop222", "color":"#173177" }, "Remark": { "value":"opopop333", "color":"#173177" }, "Pingou_ProductName":{ "value":"opopop444", "color":"#173177" } } }
暂无留言,赶快评论吧