0.0.7 • Published 2 years ago

qiao.ext.weixin v0.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

urls

homepage

https://code.insistime.com/qiao.ext.weixin

github

https://github.com/insistime/qiao.ext.weixin

npm

https://www.npmjs.com/package/qiao.ext.weixin

donate

http://uikoo9.com/donate

started

install

npm install qiao.ext.weixin

dependencies

  1. request

documentation

  1. request, https://www.npmjs.com/package/request

api

accessToken

'use strict';

var qiaoExtWeixin = require('qiao.ext.weixin');

var test = async function(){
	var appId		= require('./config.json').AppID;
	var appSecret	= require('./config.json').AppSecret;
	
	var accessToken	= await qiaoExtWeixin.accessToken(appId, appSecret);
	console.log(accessToken);
};

test();

mpCodeFile

'use strict';

var qiaoExtWeixin = require('qiao.ext.weixin');

var test = async function(){
	// accessToken
	var accessToken = '';
	
	// mp code file by api 1 : https://developers.weixin.qq.com/miniprogram/dev/api/getWXACode.html
	qiaoExtWeixin.mpCodeFile(1, accessToken, {path:'views/ucenter-register/ucenter-register'}, 'd:/test1.png');

	// mp code file by api 2 : https://developers.weixin.qq.com/miniprogram/dev/api/getWXACodeUnlimit.html
	qiaoExtWeixin.mpCodeFile(2, accessToken, {page:'views/ucenter-register/ucenter-register', scene:'1'}, 'd:/test2.png');
	
	// mp code file by api 3 : https://developers.weixin.qq.com/miniprogram/dev/api/createWXAQRCode.html
	qiaoExtWeixin.mpCodeFile(3, accessToken, {path:'views/ucenter-register/ucenter-register'}, 'd:/test3.png');
};

test();

mpCodeSrc

'use strict';

var qiaoExtWeixin = require('qiao.ext.weixin');

var test = async function(){
	// accessToken
	var accessToken = '';
	
	// mp code src by api 1 : https://developers.weixin.qq.com/miniprogram/dev/api/getWXACode.html
	var src1 = await qiaoExtWeixin.mpCodeSrc(1, accessToken, {path:'views/ucenter-register/ucenter-register'});

	// mp code src by api 2 : https://developers.weixin.qq.com/miniprogram/dev/api/getWXACodeUnlimit.html
	var src2 = await qiaoExtWeixin.mpCodeSrc(2, accessToken, {page:'views/ucenter-register/ucenter-register', scene:'1'}, 'jpg');
	
	// mp code src by api 3 : https://developers.weixin.qq.com/miniprogram/dev/api/createWXAQRCode.html
	var src3 = await qiaoExtWeixin.mpCodeSrc(3, accessToken, {path:'views/ucenter-register/ucenter-register'}, 'png');
	
	console.log(src1);
	console.log(src2);
	console.log(src3);
};

test();

version

0.0.5.20200803

  1. ncu

0.0.4.20191206

  1. add funding

0.0.3.20190108

  1. 接口1生成文件
  2. 接口1生成src
  3. 接口1-3生成文件或者返回src

0.0.2.20190107

  1. nodejs weixin sdk

0.0.1.20190104

  1. init project
  2. access token
0.0.7

2 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago