Created
November 27, 2015 22:19
-
-
Save jesuslerma/15298e2953a1b11fc9a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conn = Faraday.new(:url => 'http://jsonplaceholder.typicode.com') do |faraday| | |
faraday.request :url_encoded # form-encode POST params | |
faraday.response :logger # log requests to STDOUT | |
faraday.adapter Faraday.default_adapter # make requests with Net::HTTP | |
end | |
conn.get '/comments' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment