module YolQyWeixin::Connection::Qrcode

Public Instance Methods

get_limited_qr(scene_id) click to toggle source
# File lib/yol_qy_weixin/connections/qrcode.rb, line 4
def get_limited_qr(scene_id)
  post_params    = {"expire_seconds": 3600, "action_name": "QR_SCENE", "action_info": {"scene": {"scene_id": scene_id}}}
  http_post(qrcode_create_url, post_params)
end

Private Instance Methods

qrcode_create_url() click to toggle source
# File lib/yol_qy_weixin/connections/qrcode.rb, line 11
def qrcode_create_url
  "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=#{get_access_token}"
end