PFLinkedInUtils 0.1.9

PFLinkedInUtils 0.1.9

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
 


Dependency Status Analytics

Overview

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 Screenshot

Usage

Installation

Or you can add the following files to your project:

  • PFLinkedInUtils.m
  • PFLinkedInUtils.h

And its dependencies:

To run the example project, clone the repo, and run pod install from the Example directory first.

Example

[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);
        }];
}];

Etc.

  • Contributions are very welcome.
  • Attribution is appreciated (let's spread the word!), but not mandatory.

Use it? Love/hate it?

Tweet the author @alexruperez, and check out alexruperez's blog: http://alexruperez.com

License

PFLinkedInUtils is available under the MIT license. See the LICENSE file for more info.