Created
October 17, 2015 15:06
-
-
Save mikekavouras/7a5b724715cbea6b930f 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
| AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; | |
| [manager GET:@"http://example.com/resources.json" parameters:nil success:^(NSURLSessionTask *task, id responseObject) { | |
| NSLog(@"JSON: %@", responseObject); | |
| } failure:^(NSURLSessionTask *operation, NSError *error) { | |
| NSLog(@"Error: %@", error); | |
| }]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment