From fe5602e504d56309cc36f0c3f9d8da36088aa040 Mon Sep 17 00:00:00 2001 From: Tom Bachant Date: Fri, 1 Aug 2014 22:02:07 -0400 Subject: [PATCH] Updated GET method for AFNetworking 2.0 --- .../IOSLinkedInAPI-Example/LIAViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Example/IOSLinkedInAPI-Example/IOSLinkedInAPI-Example/LIAViewController.m b/Example/IOSLinkedInAPI-Example/IOSLinkedInAPI-Example/LIAViewController.m index 5e4fea0..789483f 100644 --- a/Example/IOSLinkedInAPI-Example/IOSLinkedInAPI-Example/LIAViewController.m +++ b/Example/IOSLinkedInAPI-Example/IOSLinkedInAPI-Example/LIAViewController.m @@ -45,7 +45,7 @@ - (void)didPressLogin:(id)sender { [self.client getAuthorizationCode:^(NSString *code) { [self.client getAccessToken:code success:^(NSDictionary *accessTokenData) { NSString *accessToken = [accessTokenData objectForKey:@"access_token"]; - [self.client getPath:[NSString stringWithFormat:@"https://api.linkedin.com/v1/people/~?oauth2_access_token=%@&format=json", accessToken] parameters:nil success:^(AFHTTPRequestOperation *operation, NSDictionary *result) { + [self.client GET:[NSString stringWithFormat:@"https://api.linkedin.com/v1/people/~?oauth2_access_token=%@&format=json", accessToken] parameters:nil success:^(AFHTTPRequestOperation *operation, NSDictionary *result) { NSLog(@"current user %@", result); } failure:^(AFHTTPRequestOperation *operation, NSError *error) { NSLog(@"failed to fetch current user %@", error); @@ -66,4 +66,4 @@ - (void)didReceiveMemoryWarning { // Dispose of any resources that can be recreated. } -@end \ No newline at end of file +@end