node-weixin
微信公众平台消息接口的Node.js实现。
Installation
如果你使用node进行开发,那么安装很简单:
npm install node-weixin
如果是订阅号,可以使用基础接口
var weixin = require.init; weixin.errMsg
如果是公众号,可以使用高级接口,当然订阅号的接口都可以使用
var weixin = require.init; /*** 获取access_token,7200S过期一次,可以放缓存中,陪两小时重新获取下*/weixin.getAccessToken
LICENSE
The MIT License (MIT) Copyright (c) 2013 feeloc
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.