TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | May 2017 |
Maintained by alexruperez.
Depends on: | |
Parse | ~> 1.8 |
IOSLinkedInAPI | ~> 2.0 |
AFNetworking | ~> 2.0 |
The PFLinkedInUtils class provides utility functions for working with LinkedIn in a Parse application.
Note: As of the 12´ May 2015 LinkedIn applied restrictions to API usage for all non partners: See: https://developer.linkedin.com/blog/posts/2015/developer-program-changes
This class is currently for iOS only.
PFLinkedInUtils.m
PFLinkedInUtils.h
To run the example project, clone the repo, and run pod install
from the Example directory first.
[Parse setApplicationId:@"PARSE_APP_ID" clientKey:@"PARSE_CLIENT_SECRET"];
[PFLinkedInUtils initializeWithRedirectURL:@"LINKEDIN_REDIRECT_URL" clientId:@"LINKEDIN_CLIENT_ID" clientSecret:@"LINKEDIN_CLIENT_SECRET" state:@"DCEEFWF45453sdffef424" grantedAccess:@[@"r_fullprofile", @"r_network"] presentingViewController:nil];
[PFLinkedInUtils logInWithBlock:^(PFUser *user, NSError *error) {
NSLog(@"User: %@, Error: %@", user, error);
[PFLinkedInUtils.linkedInHttpClient GET:@"LINKEDIN_API_URL" parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSLog(@"Response JSON: %@", responseObject);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"Error: %@", error);
}];
}];
Tweet the author @alexruperez, and check out alexruperez's blog: http://alexruperez.com
PFLinkedInUtils is available under the MIT license. See the LICENSE file for more info.