Sha256: 0ccc1812beba6df0b0cd4495732b0f0ac608936380653ae68b7fba799f0511eb
Contents?: true
Size: 758 Bytes
Versions: 4
Compression:
Stored size: 758 Bytes
Contents
module Wechat module Api # module Util def create_qrcode_temp(scene_id, expire_seconds = 60_480) params = { action_name: 'QR_SCENE', expire_seconds: expire_seconds, action_info: { scene: { scene_id: scene_id } } } post 'qrcode/create', params end def create_qrcode(scene_str) params = { action_name: 'QR_LIMIT_STR_SCENE', action_info: { scene: { scene_str: scene_str } } } post 'qrcode/create', params end def js_ticket res = get 'ticket/getticket', type: :jsapi res['ticket'] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wechat-api-0.3.0 | lib/wechat/api/util.rb |
wechat-api-0.2.1 | lib/wechat/api/util.rb |
wechat-api-0.2.0 | lib/wechat/api/util.rb |
wechat-api-0.1.3 | lib/wechat/api/util.rb |