Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1001 Bytes

README-EN.md

File metadata and controls

43 lines (26 loc) · 1001 Bytes

wechat-card

Warning: this repo is too old that compared with the wechat official api, Please do the full test before use in production environment.

NPM

Build Status

Wechat Card API for NodeJS

Just support card type: CASH, DISCOUNT, GIFT, GROUPON, GENERAL_COUPON, LUCK_MONEY in this verison

Install

npm install wechat-card

Usage

  var wxCard = require("wechat-card");

  wxCard.setConfig({
    appId: "YOUR APP ID",
    appSecret: "YOUR APP SECRET"

    // or config access token service
    // accessTokenService: "http://url"

  });

  wxCard.card.createCard(cardinfo, function(error, cardid) {
    // do something
  });

Documentation

Wechat Card API

License

MIT