wechat-card

1.0.8 • Public • Published

wechat-card

NPM

Build Status

English ReadMe

微信卡券API接口NODEJS版

目前版本仅支持以下几种类型的卡券: CASH, GIFT, GROUPON, DISCOUNT, GENERAL_COUPON, LUCK_MONEY

我们会在之后的版本陆续推出这些功能的支持。

安装

npm install wechat-card

使用方法

  var wxCard = require("wechat-card");
 
  wxCard.setConfig({
    appId: "YOUR APP ID",
    appSecret: "YOUR APP SECRET"
 
    // 可以配置提供access token的服务
    // accessTokenService: "http://url"
 
  });
 
  wxCard.card.createCard(cardinfo, function(error, cardid) {
    // do something
  });

文档

卡券详细文档

License

MIT

/wechat-card/

    Package Sidebar

    Install

    npm i wechat-card

    Weekly Downloads

    12

    Version

    1.0.8

    License

    MIT

    Last publish

    Collaborators

    • kenticny