очень простой пример для запроса GET: загрузка и импорт класса AFJSONRequestOperation.
NSURL *myUrl = [[NSURL alloc] initWithString:[NSString stringWithFormat:@"your Url Here"]];
NSLog(@"url is --%@",myUrl);
NSURLRequest *request = [NSURLRequest requestWithURL:myUrl];
AFJSONRequestOperation *operation;
operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request
success:^(NSURLRequest *req, NSHTTPURLResponse *responce, id jsonObject) {
NSMutableDictionary *dictionary = [jsonObject objectForKey:@"Enter your key here that has some data"];
}
failure:^(NSURLRequest *req, NSHTTPURLResponse *responce, NSError *error, id jsonObject) {
NSLog(@"Recieved an HTTP %d", responce.statusCode);
NSLog(@"The error was: %@",error);
}];
[operation start];