All Projects → ahmetkgunay → LinkedinIOSHelper

ahmetkgunay / LinkedinIOSHelper

Licence: MIT license
LinkedIn iOS Fetch Member Information Library

Programming Languages

objective c
16641 projects - #2 most used programming language
swift
15916 projects
ruby
36898 projects - #4 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to LinkedinIOSHelper

Linkedin-Client
Web scraper for grabing data from Linkedin profiles or company pages (personal project)
Stars: ✭ 42 (+7.69%)
Mutual labels:  linkedin, linkedin-api
LinkedIn Scraper
🙋 A Selenium based automated program that scrapes profiles data,stores in CSV,follows them and saves their profile in PDF.
Stars: ✭ 25 (-35.9%)
Mutual labels:  linkedin, linkedin-api
React-Linkedin-Login
A React demo app for Linkedin API: LinkedIn OAuth, LinkedIn REST API
Stars: ✭ 70 (+79.49%)
Mutual labels:  linkedin, linkedin-api
LinkedInNET
Sparkle.LinkedInNET will help you query the LinkedIn API with C# :)
Stars: ✭ 31 (-20.51%)
Mutual labels:  linkedin, linkedin-api
react-linkedin-login-oauth2
Easily get Authorization Code from Linked In to log in without redirecting.
Stars: ✭ 83 (+112.82%)
Mutual labels:  linkedin, linkedin-api
social-post-api
Social Media API: Automate Posting and Analytics to Social Networks like Instagram, TikTok, Twitter, Facebook, LinkedIn, Reddit, YouTube, and Telegram
Stars: ✭ 38 (-2.56%)
Mutual labels:  linkedin, linkedin-api
LinkedIn networking
Python code to automatically expend your LinkedIn network based on your interest. ONLY FOR EDUCATIONAL PURPOSES. PLEASE DO NOT MISUSE IT.
Stars: ✭ 27 (-30.77%)
Mutual labels:  linkedin, linkedin-api
Devise-Omniauth-Multiple-Providers
Devise Multiple Omniauth Providers
Stars: ✭ 34 (-12.82%)
Mutual labels:  linkedin
react-custom-share
Social media share buttons for ReactJS. Use one of the built-in button themes or create a custom one from scratch.
Stars: ✭ 47 (+20.51%)
Mutual labels:  linkedin
LinkedIn-Scraper
A LinkedIn Scraper to scrape up to 10k LinkedIn profiles from company profile links and save their e-mail addresses if available!
Stars: ✭ 62 (+58.97%)
Mutual labels:  linkedin
feedspora
FeedSpora posts RSS/Atom feeds to your social network accounts.
Stars: ✭ 31 (-20.51%)
Mutual labels:  linkedin
linkedinBot
Automate the process of sending referral request and cold mailing on LinkedIn
Stars: ✭ 25 (-35.9%)
Mutual labels:  linkedin
github-readme-linkedin
📋 A serverless application to get dynamically generated images from your LinkedIn profile on your GitHub READMEs
Stars: ✭ 52 (+33.33%)
Mutual labels:  linkedin
Python-For-Kids
A comprehensive and FREE Online Python Development tutorial FOR KIDS utilizing an official BBC micro:bit Development Board going step-by-step into the world of Python for microcontrollers.
Stars: ✭ 621 (+1492.31%)
Mutual labels:  linkedin
LinkedIn-Auto-Endorsement-Bot
A chrome extension to automatically endorse all your connection's skills. Or a LinkedIn bot to automatically endorse all skills of your connections. Endorse everyone on LinkedIn. Auto Endorser.
Stars: ✭ 29 (-25.64%)
Mutual labels:  linkedin
sharon
A lightweight and modular social sharing library
Stars: ✭ 16 (-58.97%)
Mutual labels:  linkedin
Dica Python Linkedin
⚡ Este repositório é direcionado para dicas com a linguagem python, que estão sendo postadas em meu linkedin.
Stars: ✭ 54 (+38.46%)
Mutual labels:  linkedin
social-media-hacker-list
Growing list of apps and tools for enhancing social media experiences.
Stars: ✭ 198 (+407.69%)
Mutual labels:  linkedin
linkedin-private-api
LinkedIn NodeJS API, written in TypeScript.
Stars: ✭ 152 (+289.74%)
Mutual labels:  linkedin
Social-Media-Automation
Automate social media because you don't have to be active on all of them😉. Best way to be active on all social media without actually being active on them. 😃
Stars: ✭ 186 (+376.92%)
Mutual labels:  linkedin

LinkedinIOSHelper

Version License Platform Twitter: @ahmtgny

Usage

Usage is simple, just import "LinkedInHelper.h" to your controller where you want to use this library:

If you want to login user with LinkedIn Api, so you can easily fetch your informations like below:

#import "LinkedInHelper.h"

@implementation ViewController

- (void)fetchUserInformations {        
	
	LinkedInHelper *linkedIn = [LinkedInHelper sharedInstance];

    linkedIn.cancelButtonText = @"Close"; // Or any other language But Default is Close
	
    NSArray *permissions = @[@(BasicProfile),
                            @(EmailAddress),
                            @(Share),
                            @(CompanyAdmin)];
        
    linkedIn.showActivityIndicator = YES;
        
#warning - Your LinkedIn App ClientId - ClientSecret - RedirectUrl
        
    [linkedIn requestMeWithSenderViewController:self
                                       clientId:@""         // Your App Client Id
                                   clientSecret:@""         // Your App Client Secret
                                    redirectUrl:@""         // Your App Redirect Url
                                    permissions:permissions
                                          state:@""               // Your client state
                                successUserInfo:^(NSDictionary *userInfo) {
                                    // Whole User Info
                                    NSLog(@"user Info : %@", userInfo);
                                }
                                failUserInfoBlock:^(NSError *error) {
                                    NSLog(@"error : %@", error.userInfo.description);
                                }
    ];
}

@end

You can check if LinkedIn Access Token is still valid like below:

- (BOOL)isLinkedInAccessTokenValid {
	return [LinkedInHelper sharedInstance].isValidToken;
}

You can fetch user Informations automatically without getting authorization code again via web view. This will automatically fetch use informations thanks to valid access token

-  (void)getUserInfo {
	
	LinkedInHelper *linkedIn = [LinkedInHelper sharedInstance];
    
    // If user has already connected via linkedin in and access token is still valid then
    // No need to fetch authorizationCode and then accessToken again!
    
    #warning - To fetch user info  automatically without getting authorization code, accessToken must be still valid
    
    if (linkedIn.isValidToken) {
                
        // So Fetch member info by elderyly access token
        [linkedIn autoFetchUserInfoWithSuccess:^(NSDictionary *userInfo) {
            // Whole User Info
            NSLog(@"user Info : %@", userInfo);
        } failUserInfo:^(NSError *error) {
            NSLog(@"error : %@", error.userInfo.description);
        }];
    }
}

For more information please check the Demo App. I tried to do my best in code by writing well documentation.

Customization Navigation Bar Of Authorization ViewController

You can customize app-wide Linkedin Auth View Controller Navigation Bar as shown below

  • Appearence Support
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    [[LinkedinAuthorizationNavBar appearance] setAuthTintColor:[UIColor redColor]];
    [[LinkedinAuthorizationNavBar appearance] setAuthBarIsTranslucent:TRUE];
    [[LinkedinAuthorizationNavBar appearance] setAuthBarTintColor:[UIColor lightGrayColor]];
    [[LinkedinAuthorizationNavBar appearance] setAuthTitle:@"Linkedin"];

    NSDictionary *titleAttributes = @{
    NSForegroundColorAttributeName:[UIColor blackColor],
    NSFontAttributeName:[UIFont boldSystemFontOfSize:16]
    };
    [[LinkedinAuthorizationNavBar appearance] setAuthBarTitleTextAttributes:titleAttributes];

    NSDictionary *cancelButtonAttr = @{
    NSForegroundColorAttributeName:[UIColor redColor],
    NSFontAttributeName:[UIFont boldSystemFontOfSize:14]
    };
    [[LinkedinAuthorizationNavBar appearance] setAuthCancelButtonTitleTextAttributes:cancelButtonAttr];

    return YES;
}

Requirements

This library requires a deployment target of iOS 6.0 or greater.

Installation

LinkedinIOSHelper is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'LinkedinIOSHelper', '~> 1.0.9'

Author

Ahmet Kazım Günay, [email protected]

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].