Novelty Promotes Magicians
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

wxent-api-redis

2.0.1 • Public • Published

wxent-api-redis

微信企业号API,使用Redis保存AccessToken

示例

import WxApi from 'wxent-api-redis';

const wxapi = new WxApi('corpId', 'secret', agentId, 'redis://localhost:6379');
// 返回一个'wechat-enterprise-api'的api对象
// 详见:http://doxmate.cool/node-webot/wechat-enterprise-api/api.html#api_api_common
const client = wxapi.getClient();
client.getUser(msg.FromUserName, function (err, user) {

});

CHANGELOG

v2.0

  1. 重新设计API (BREAKING CHANGE)

install

npm i wxent-api-redis

Downloadsweekly downloads

0

version

2.0.1

license

GPL

repository

githubgithub

last publish

collaborators

  • avatar