0.1.1 • Published 11 years ago
wechatapi v0.1.1
WechatAPI
store the access_token of wechat API,node-webot/wechat
Installl
npm install wechat --save
Then
npm install wechatapi --save
Required
https://github.com/node-webot/wechat
How to use
Express:
router.get('/test',function(req,res){
var sapi = require('wechatapi');
var api = new sapi('appid', 'appsecrite');
api.getAccessToken(function(err,data) {
res.send(data);
});
});