Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LinkedIN API in Asp.NET [duplicate]

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.

like image 677
Syed Raheel Abbas Avatar asked Jun 08 '11 12:06

Syed Raheel Abbas


2 Answers

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

like image 39
apros Avatar answered Oct 30 '22 11:10

apros


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());  
}  
like image 139
christofr Avatar answered Oct 30 '22 13:10

christofr