Created
June 15, 2016 07:49
-
-
Save LincolnBurrows/7b8b29f4770d1bdc101143569b7bf184 to your computer and use it in GitHub Desktop.
生成永久二维码
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var WechatAPI = require('wechat-api'); | |
var appid = 'xxx'; | |
var appsecret = 'xxxxx'; | |
var api = new WechatAPI(appid, appsecret); | |
api.createLimitQRCode(10000, function(err, result){ | |
if(err){ | |
console.log('createLimitQRCode failed') | |
} | |
else{ | |
var ticket = result.ticket; | |
var url = api.showQRCodeURL(ticket); | |
console.log('url:'+url); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment