{"id":181,"date":"2013-11-01T13:33:01","date_gmt":"2013-11-01T13:33:01","guid":{"rendered":"http:\/\/localhost\/whb\/?p=181"},"modified":"2021-05-17T17:19:14","modified_gmt":"2021-05-17T16:19:14","slug":"sponsored-contests","status":"publish","type":"post","link":"https:\/\/ferrah.co.uk\/?p=181","title":{"rendered":"Tutorials and Experiments"},"content":{"rendered":"<p>Ok&#8230;after a busy family weekend I am finally sitting down to document a Visual Studio &#8211; LinkedIn Application. I will offer several solutions here. Here is the overview of the steps required:<\/p>\n<ul>\n<li>Create API key for the solution at your LinkedIn Developer <a title=\"LinkedIn Developer Account\" href=\"https:\/\/www.linkedin.com\/secure\/developer\" target=\"_blank\" rel=\"noopener\">account<\/a>.<\/li>\n<li>Create an ASP.NET solution for a Web Application.<\/li>\n<li>Add references.<\/li>\n<li>There maybe an Error message:\n<ul>\n<li>MVC: Login Failure. Unsuccessful login with service.<\/li>\n<li>WebForms: External login LinkedIn failed.<\/li>\n<\/ul>\n<p>We will tackle these later.<\/li>\n<\/ul>\n<div class=\"post-img\"><img class=\"img-rounded surrounded-img\" src=\"http:\/\/ferrah.co.uk\/wp-content\/uploads\/2021\/05\/linkedIn_API.png\" alt=\"\" \/><\/div>\n<p>The app should retrieve their Name, ProfileURL, Email Address and most recent Job Title<\/p>\n<p>Lets start at the beginning. With Creating a <a title=\"LinkedIn Developer Account\" href=\"http:\/\/developer.linkedin.com\/\" target=\"_blank\" rel=\"noopener\">LinkedIn Developer<\/a> account. Once done you can setup the <a title=\"Create LinkedIn Application Keys\" href=\"https:\/\/www.linkedin.com\/secure\/developer\" target=\"_blank\" rel=\"noopener\">Application Keys<\/a> for your application.<\/p>\n<p>1. Firstly &#8211; lets head over to your LinkedIn developer account to setup some new <a title=\"Create LinkedIn Application Keys\" href=\"https:\/\/www.linkedin.com\/secure\/developer\" target=\"_blank\" rel=\"noopener\">application keys<\/a>.<\/p>\n<div class=\"post-img\"><img class=\"img-rounded surrounded-img\" src=\"http:\/\/ferrah.co.uk\/wp-content\/uploads\/2021\/05\/linkedIn_API_menu1a1.png\" alt=\"\" \/><\/div>\n<p>2. Next you&#8217;ll need to complete the LinkedIn form to generate the application Keys. The initial part of the form will ask for the company information. Start typing the company name and select it from the dropdown list that populates. If it&#8217;s not there you can create a new company by selecting &#8216;New Company&#8217; from the list. If you don&#8217;t have a company page one will be created for you.<\/p>\n<div class=\"post-img\"><img class=\"img-rounded surrounded-img\" src=\"http:\/\/ferrah.co.uk\/wp-content\/uploads\/2021\/05\/linkedIn_API_form1_altCompanyInfo.png\" alt=\"\" \/><\/div>\n<p>In the next section you&#8217;ll need to specify the name, description, website URL and use of your application. Keep the \u201cInclude yourself as developer for this application\u201d option checked. Select the status of the application. While you are developing the application you can keep the status as \u201cDevelopment\u201d. In this case any updates posted by the application through the LinkedIn API will only be visible to the developers of the application. To use the application in a production environment set the status to \u201cLive\u201d.<\/p>\n<div class=\"post-img\"><img class=\"img-rounded surrounded-img\" src=\"http:\/\/ferrah.co.uk\/wp-content\/uploads\/2021\/05\/linkedIn_API_form1_alt1a.png\" alt=\"\" \/><\/div>\n<p>Add the contact details of the person responsible for the development of this application?<\/p>\n<div class=\"post-img\"><img class=\"img-rounded surrounded-img\" src=\"http:\/\/ferrah.co.uk\/wp-content\/uploads\/2021\/05\/linkedIn_API_form1_developerInfo.png\" alt=\"\" \/><\/div>\n<p>In the Default Scope section select the checkboxes of the LinkedIn information that you want to gather from ther users profile.<\/p>\n<div class=\"post-img\"><img class=\"img-rounded surrounded-img\" src=\"http:\/\/ferrah.co.uk\/wp-content\/uploads\/2021\/05\/linkedIn_API_form1_OAuthRequest.png\" alt=\"\" \/><\/div>\n<p>Finally, make sure the Terms of Agreement checkbox is selected and click the &#8216;Add Application&#8217; button.<\/p>\n<div class=\"post-img\"><img class=\"img-rounded surrounded-img\" src=\"http:\/\/ferrah.co.uk\/wp-content\/uploads\/2021\/05\/linkedIn_API_form1_alt1b.png\" alt=\"\" \/><\/div>\n<p>The next screen you will see is the application confirmation screen. You will be presented with the API key and Secret key to integrate within your development suite.<\/p>\n<div class=\"post-img\"><img class=\"img-rounded surrounded-img\" src=\"http:\/\/ferrah.co.uk\/wp-content\/uploads\/2021\/05\/linkedIn_API_form2_alt.png\" alt=\"\" \/><\/div>\n<h3>To be Continued&#8230;<\/h3>\n<p>Next time we will look at the creation of the MVC project and the consumption of the LinkedIn keys within the app<\/p>\n<h3><strong>Enabling LinkedIn authentication in your App<\/strong><\/h3>\n<p>Ok it&#8217;s time to add the LinkedIn API to our MVC application. For this we will have to create an MVC application in Visual Studio. Go to File &gt; New &gt; Project and select a new &#8220;ASP.NET Web Application&#8221; and click OK.<\/p>\n<div class=\"post-img\"><img class=\"img-rounded surrounded-img\" src=\"http:\/\/ferrah.co.uk\/wp-content\/uploads\/2021\/05\/linkedIn_API_MVC1.png\" alt=\"\" \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Ok&#8230;after a busy family weekend I am finally sitting down to document a Visual Studio &#8211; LinkedIn Application. I will offer several solutions here. Here is the overview of the steps required:<\/p>\n","protected":false},"author":2,"featured_media":1251,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/ferrah.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/181"}],"collection":[{"href":"https:\/\/ferrah.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ferrah.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ferrah.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ferrah.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=181"}],"version-history":[{"count":4,"href":"https:\/\/ferrah.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":1253,"href":"https:\/\/ferrah.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions\/1253"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ferrah.co.uk\/index.php?rest_route=\/wp\/v2\/media\/1251"}],"wp:attachment":[{"href":"https:\/\/ferrah.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ferrah.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ferrah.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}