{"id":13485405,"url":"https://github.com/SimformSolutionsPvtLtd/SSLinkedIn","last_synced_at":"2025-03-27T19:31:04.442Z","repository":{"id":49752328,"uuid":"133938397","full_name":"SimformSolutionsPvtLtd/SSLinkedIn","owner":"SimformSolutionsPvtLtd","description":null,"archived":false,"fork":false,"pushed_at":"2018-05-18T11:20:23.000Z","size":664,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T20:44:07.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SimformSolutionsPvtLtd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-18T10:11:52.000Z","updated_at":"2023-09-30T21:59:40.000Z","dependencies_parsed_at":"2022-09-24T05:20:47.236Z","dependency_job_id":null,"html_url":"https://github.com/SimformSolutionsPvtLtd/SSLinkedIn","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSLinkedIn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSLinkedIn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSLinkedIn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSLinkedIn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimformSolutionsPvtLtd","download_url":"https://codeload.github.com/SimformSolutionsPvtLtd/SSLinkedIn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245910746,"owners_count":20692497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T18:00:21.781Z","updated_at":"2025-03-27T19:31:03.873Z","avatar_url":"https://github.com/SimformSolutionsPvtLtd.png","language":"Objective-C","funding_links":[],"categories":["iOS","iOS Guides"],"sub_categories":["Objective-C"],"readme":"## SSLinkedIn\n\nLinkedinSwift is a project for managing native LinkedIn SDK using  [CocoaPods](https://cocoapods.org/)\n\nLinkedin Oauth Helper, depend on Linkedin Native App installed or not, using Linkdin IOS SDK or UIWebView to login, support Swift with iOS 7\n\nLatest version is based on  [LinkedIn SDK 1.0.7](https://content.linkedin.com/content/dam/developer/sdk/iOS/li-ios-sdk-1.0.6-release.zip)  and  [IOSLinkedinAPI for webview auth](https://github.com/jeyben/IOSLinkedInAPI).\n\n\n## How to use\n\n    pod 'SSLinkedIn', '~\u003e 1.0'\n\n\n  \nCheck out Example project.\n#### Setup configuration and helper instance.\n    let linkedinHelper = LinkedinSwiftHelper(configuration:\n\t\tLinkedinSwiftConfiguration(\n\t        clientId: \"77tn2ar7gq6lgv\",\n\t        clientSecret: \"iqkDGYpWdhf7WKzA\", \n\t        state: \"DLKDJF46ikMMZADfdfds\", \n\t        permisssions: [\"r_basicprofile\", \"r_emailaddress\",\"w_share\"]\n        )\n    )\n    \n#### Or if you want to present in a different ViewController, using:\n\n    let linkedinHelper = LinkedinSwiftHelper(\n        configuration: LinkedinSwiftConfiguration(\n\t        clientId: \"77tn2ar7gq6lgv\",\n\t        clientSecret: \"iqkDGYpWdhf7WKzA\",\n\t        state: \"DLKDJF45DIWOERCM\",\n\t        permissions: [\"r_basicprofile\", \"r_emailaddress\",\"w_share\"]\n       ), webOAuthPresent: yourViewController\n    )\n\n#### Setup LinkedIn SDK Setting : [instruction here](https://developer.linkedin.com/docs/ios-sdk)\n#### Setup redirect handler in AppDelegate\n\n    func application(application: UIApplication,\n\t\t    openURL url:NSURL,\n\t\t    sourceApplication: String?,\n\t\t    annotation: AnyObject) -\u003e Bool {\n\t\t// Linkedin sdk handle redirect\n\t\tif LinkedinSwiftHelper.shouldHandleUrl(url) {\n\t\t\treturn LinkedinSwiftHelper.application(application,\n\t\t\t\topenURL: url,\n\t\t\t\tsourceApplication: sourceApplication,\n\t\t\t\tannotation: annotation\n\t\t  )\n\t   }\n\t\treturn false\n\t}\n\t\n#### ⚠️  for iOS 9 and above use this instead:\n\n    func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey: Any] = [:]) -\u003e Bool {\n\t\tif  LinkedinSwiftHelper.shouldHandle(url) {\n\t\t\t\treturn LinkedinSwiftHelper.application(app, open:url, sourceApplication: nil, annotation: nil)\n\t\t}\n\t\treturn  false\n\t}\n#### Login Method :\n\n    linkedinHelper.authorizeSuccess({ [unowned self] (lsToken) -\u003e Void in\n\t    // Login success lsToken\n\t}, error: { [unowned self] (error) -\u003e Void in\n\t\t// Encounter error: error.localizedDescription\n\t}, cancel: { [unowned self] () -\u003e Void in\n\t\t// User Cancelled\n\t})\n\n#### Fetch Profile :\n\n    linkedinHelper.requestURL(\"https://api.linkedin.com/v1/people/~?format=json\",\n\t    requestType: LinkedinSwiftRequestGet,\n\t    success: { (response) -\u003e Void in\n\t    //Request success response\n    }) { [unowned self] (error) -\u003e Void in\n\t    //Encounter error\n    }\n#### Share Content : \n\n    let dictionary = [\"Comment\": \"Check out developer.linkedin.com! http://linkd.in/1FC2PyG\", \"visibility\": [\"code\": \"anyone\"]] as [String: AnyObject]\n    let jsonData = try? JSONSerialization.data(withJSONObject: dictionary, options: [])\n    linkedinHelper.postOnLinked(\"https://api.linkedin.com/v1/people/~/shares\", requestType: LinkedinSwiftRequestType.LinkedinSwiftRequestPOST,\n\t\t     data: jsonData, success: { (response) in\n\t\t\t // Request success with response\n\t}) { [unowned self] (error) in\n\t\t\t// Encounter error: error.localizedDescription\n\t\t}\n\t}\n#### Logout : \n\n    linkedinHelper.logout()\n## Known issues\n It seems Linkedin 1.0.7 messed up with  `Bitcode support.`  again. You need to turn off Bitcode to make it work.- seems can turn on Bitcode now.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FSSLinkedIn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSimformSolutionsPvtLtd%2FSSLinkedIn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FSSLinkedIn/lists"}