Created
May 31, 2015 19:21
-
-
Save aclissold/d07ba04e84349af3b044 to your computer and use it in GitHub Desktop.
Swift GET request using spam and Alamofire
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
import Foundation | |
import Alamofire // Alamofire/Alamofire | |
import Blocker // aclissold/Blocker | |
Alamofire.request(.GET, "http://httpbin.org/get").responseJSON { | |
(_, _, JSON, _) in | |
if let JSON = JSON as? [String: AnyObject] { | |
println(JSON) | |
} | |
Blocker.unblock() | |
} | |
Blocker.block() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment