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 "AFNetworking.h" | |
int main(void) | |
{ | |
NSURL *baseURL = [NSURL URLWithString:@"http://graph.facebook.com/"]; | |
AFHTTPRequestOperationManager *operationManager = [[AFHTTPRequestOperationManager alloc] initWithBaseURL:baseURL]; | |
AFHTTPRequestOperation *operation = [operationManager GET:@"Octiplex" parameters:nil success:nil failure:nil]; | |
[operationManager.operationQueue waitUntilAllOperationsAreFinished]; | |
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate date]]; // Executes async notification blocks waiting in the main queue | |
NSLog(@"Response: %@", operation.responseObject); |