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