wechat-message-client
wechat client message send module
Install
npm i wechat-message-client --save-dev
Token Verify
var token = "TOKEN";var remote = protocol:'http' slashes:true hostname:'localhost' port:3080; var wmc = ; var client = ; client;
Send Message
var xml = ; // text message var textTpl = "xml": "ToUserName":"_cdata":"aaaaaaaa" "FromUserName":"_cdata":"bbbbbbbbbbb" "CreateTime":"1111111111111111" "MsgType":"text" "Content":"hello,wechat" "MsgId":"1234567890123456" ; client;
so easy to access your wechat reply server
Example
install, into example directory and install dependence.
cd example && npm i
start server
node server.js
http(get) verify token
node signature.js
http(post) post message
node message.js