Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.22 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.22 KB

WeChat Access Token

Build Status

Quick Start

const client = new WechatAccessToken({ redis: 'redis://:@127.0.0.1:6379' });

const result1 = client.getAccessToken({  appID: '', appSecret: ''});
const result2 = client.getAccessToken({  appID: '', appSecret: ''});
const result3 = client.getAccessToken({  appID: '', appSecret: ''});

Promise
  .all([result1, result2, result3])
  .then(values => {
    console.log(values);
  })
  .catch(error => {
    console.log(error);
  });

License

Apache 2.0