11

Is there any way to implement LinkedIN API by using C#,VB.NET. We need to call profile , companies ,Jobs etc API of linked in using mentioned technologies.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Syed Raheel Abbas
  • 121
  • 1
  • 1
  • 3
  • there is already a ready made client for this. checkout my [answer](http://stackoverflow.com/a/16959164/1867929). – aiapatag Jun 06 '13 at 11:13

4 Answers4

6

Linkedin have a REST based API - http://developer.linkedin.com/docs/DOC-1258

You can create a HttpWebRequest, pointed at a REST endoint, and parse the response however you wish.

// Create the web request  
HttpWebRequest request = WebRequest.Create("http://api.linkedin.com/v1/people/~/connections/") as HttpWebRequest;  

// Get response  
using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)  
{  
    // Get the response stream  
    StreamReader reader = new StreamReader(response.GetResponseStream());  

    // Console application output  
    Console.WriteLine(reader.ReadToEnd());  
}  
christofr
  • 2,680
  • 1
  • 18
  • 19
  • Hi,Any implementation in C#,VB.NET for this purpose like see user profile , user connections , companies info etc – Syed Raheel Abbas Jun 08 '11 at 13:00
  • There are no pre-built C# wrappers that I know of. However, you can use the method above to 'roll your own' hopefully without too much difficulty. – christofr Jun 08 '11 at 13:25
  • Assuming you can get the OAuth tokens, calculate the OAuth signature, and add it to the request. That makes it slightly more difficult to roll your own. – Adam Trachtenberg Jun 09 '11 at 07:22
4

In my point of view it is better to use some existed c# wrapper. Look at LinkedIn Developer Toolkit.

apros
  • 2,848
  • 3
  • 27
  • 31
1

I'm working on the LinkedInNET lib on github. The API coverage is not full but it's growing.

There is a NuGet package btw.

PM> Install-Package Sparkle.LinkedInNET
SandRock
  • 5,276
  • 3
  • 30
  • 49
0

Spring.NET Social (LinkedIn extension) is so far, the best LinkedIn API Client I've used. It's an extension of Spring.NET Social.

Although you can always consume the LinkedIn REST API using your own consumer/other 3rd party REST API consumer such as RestSharp, I would say that using Spring.NET REST combined with this LinkedIn API Client is a breeze.

aiapatag
  • 3,355
  • 20
  • 24