Skip to content

Instantly share code, notes, and snippets.

@phatduckk
Created July 16, 2014 23:09
Show Gist options
  • Save phatduckk/a5d33c6e47963655a17b to your computer and use it in GitHub Desktop.
Save phatduckk/a5d33c6e47963655a17b to your computer and use it in GitHub Desktop.
self.manager!.GET("https://itunes.apple.com/search",
parameters: ["term": searchBar.text],
success: { (operation: AFHTTPRequestOperation!,responseObject: AnyObject!) in
println("JSON: " + responseObject.description)
},
failure: { (operation: AFHTTPRequestOperation!,error: NSError!) in
println("Error: " + error.localizedDescription)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment