wechat card
1.0.0
Warning: The interface used by this library is too different from the current interface version of WeChat, and normal use cannot be guaranteed. Please strictly test each function before official use, and use it in the production environment after confirmation. Due to personal reasons, this library cannot continue to be maintained, I am deeply sorry.
WeChat card and coupon API interface NODEJS version
The current version only supports the following types of coupons:
CASH
,GIFT
,GROUPON
,DISCOUNT
,GENERAL_COUPON
,LUCK_MONEY
.
We will gradually launch support for these functions in subsequent versions.
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
} ) ;
Card and coupon detailed documents
MIT