lib/wechat/api/util.rb in wechat-api-0.1.1 vs lib/wechat/api/util.rb in wechat-api-0.1.3
- old
+ new
@@ -25,8 +25,13 @@
}
}
post 'qrcode/create', params
end
+
+ def js_ticket
+ res = get 'ticket/getticket', type: :jsapi
+ res['ticket']
+ end
end
end
end