Created
February 19, 2016 11:50
-
-
Save catalinaturlea/6826515ef24561570308 to your computer and use it in GitHub Desktop.
Make alamofire request from Objective-c
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
| [AlamofireWrapper request:RequestMethodGET URLString:@"http://something.com" parameters:nil encoding:RequestParameterEncodingURL headers:nil success:^(NSURLRequest * _Nullable request, NSHTTPURLResponse * _Nullable response, NSDictionary * _Nullable json) { | |
| NSLog(@"Success"); | |
| // Get the required information from the response JSON | |
| } failure:^(NSURLRequest * _Nullable request, NSHTTPURLResponse * _Nullable response, NSError * _Nullable error) { | |
| NSLog(@"Failure"); | |
| }]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment