Module: ThirdPartyWxa::Api::Qrcode

Included in:
Plugin
Defined in:
lib/third_party_wxa/api/qrcode.rb

Instance Method Summary collapse

Instance Method Details

#get_wxa_code(options = {}) ⇒ Object

获取小程序码 接口A: 适用于需要的码数量较少的业务场景 接口地址: api.weixin.qq.com/wxa/getwxacode?access_token=ACCESS_TOKEN



8
9
10
11
12
13
14
15
# File 'lib/third_party_wxa/api/qrcode.rb', line 8

def get_wxa_code options = {}
	path = options.delete(:path)
	width = options.delete(:width) || 430 
	http_post_with_token options, 
						'wxa', 
						'getwxacode', 
						{path: path, width: width}
end