Created
August 6, 2016 07:34
-
-
Save andrewhavens/bfcb224676c56719a858afb73ffa0297 to your computer and use it in GitHub Desktop.
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
AFMotion::JSON.get("http://calagator.org/events.json") do |response| | |
if response.success? | |
# do something with the response.object | |
else | |
# display an error message to the user | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment