Module: ThirdPartyWxa::Api::Qrcode
- Included in:
- Plugin
- Defined in:
- lib/third_party_wxa/api/qrcode.rb
Instance Method Summary collapse
-
#get_wxa_code(options = {}) ⇒ Object
获取小程序码 接口A: 适用于需要的码数量较少的业务场景 接口地址: api.weixin.qq.com/wxa/getwxacode?access_token=ACCESS_TOKEN.
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 = {} path = .delete(:path) width = .delete(:width) || 430 http_post_with_token , 'wxa', 'getwxacode', {path: path, width: width} end |