# LinkedInSignIn [](https://travis-ci.org/serhii-londar/LinkedInSignIn) [](http://cocoapods.org/pods/LinkedInSignIn) [](http://cocoapods.org/pods/LinkedInSignIn) [](http://cocoapods.org/pods/LinkedInSignIn) ## 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](https://www.linkedin.com/developer/apps) and fill in dictionary with your app credetials: ```swift let linkedinCredentilas = [ "linkedInKey": "", "linkedInSecret": "", "redirectURL": "" ] ``` Login proces is simple as: ```swift 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) } ```