1
0
mirror of https://github.com/bumi/faraday_ln_paywall synced 2024-07-12 17:48:00 +00:00
faraday_ln_paywall/example.rb

13 lines
310 B
Ruby

require "bundler/setup"
require "faraday_ln_paywall"
require "faraday"
conn = Faraday.new(:url => 'https://fourohtwo.herokuapp.com') do |faraday|
faraday.use FaradayLnPaywall::Middleware, {
max_amount: 1000,
timeout: 300
}
faraday.adapter Faraday.default_adapter
end
puts conn.get("/402").body