Latest 0.1.3
Homepage https://github.com/serhii-londar/LinkedInSignIn
License MIT
Platforms ios 9.0
Dependencies MBProgressHUD
Frameworks UIKit, WebKit
Authors

CI Status
Version
License
Platform

Example

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

Also you need to setup app on LinkedIn and fill in dictionary with your app credetials:

let linkedinCredentilas = [
    "linkedInKey": "",
    "linkedInSecret": "",
    "redirectURL": ""
]

Login proces is simple as:

let linkedInConfig = LinkedInConfig(linkedInKey: linkedinCredentilas["linkedInKey"]!, linkedInSecret: linkedinCredentilas["linkedInSecret"]!, redirectURL: linkedinCredentilas["redirectURL"]!)
let linkedInHelper = LinkedinHelper(linkedInConfig: linkedInConfig)
linkedInHelper.login(from: self, completion: { (accessToken) in
        let alertVC = UIAlertController(title: "Success", message: "Your access token is : (accessToken)!", preferredStyle: .alert)
        alertVC.addAction(UIAlertAction(title: "Ok", style: .default, handler: { _ in
            alertVC.dismiss(animated: true, completion: nil)
        }))
    self.present(alertVC, animated: true, completion: nil)
}) { error in
    print(error.localizedDescription)
}

LinkedInSignIn

LinkedInSignIn

Installation

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

pod 'LinkedInSignIn'

Author

Github: Serhii Londar

Email: [email protected]

License

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

Latest podspec

{
    "name": "LinkedInSignIn",
    "version": "0.1.3",
    "summary": "Small swift library which help easy get access token from linkedin.com.",
    "description": "Simple view controller writed on pure Swift to login and retrieve access token from linkedin.com",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.2"
    },
    "homepage": "https://github.com/serhii-londar/LinkedInSignIn",
    "screenshots": [
        "https://i.imgur.com/R8haoKu.png",
        "https://i.imgur.com/QzjcjDR.png"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Serhii Londar": "[email protected]"
    },
    "source": {
        "git": "https://github.com/serhii-londar/LinkedInSignIn.git",
        "tag": "0.1.3"
    },
    "social_media_url": "https://twitter.com/serhii_londar",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "LinkedInSignIn/Classes/**/*",
    "resources": "LinkedInSignIn/**/*.storyboard",
    "frameworks": [
        "UIKit",
        "WebKit"
    ],
    "dependencies": {
        "MBProgressHUD": [
            "~> 0.9"
        ]
    }
}

Pin It on Pinterest

Share This