Module: Wxapi::Qrcode
- Included in:
- Wxapi
- Defined in:
- lib/wxapi/qrcode.rb
Instance Method Summary collapse
Instance Method Details
#unlimited_qrcode(**options) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/wxapi/qrcode.rb', line 4 def unlimited_qrcode(**) [:env_version] = "release" if [:env_version].nil? token = get_access_token req = { "page": [:page], "scene": [:scene], "check_path": false, "env_version": [:env_version] }.to_json RestClient.post "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=#{token}", req, { accept: :json, content_type: :json } end |