Created
June 2, 2015 08:02
-
-
Save lorenzosinisi/3561ec6d00e2e056cc85 to your computer and use it in GitHub Desktop.
Faraday example code for a Rails action
This file contains 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
def self.get(url, params) | |
conn = Faraday.new | |
response = conn.get url + "?" + params, {} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment