C# oAuth example project for LinkedIn

1260450096_icontexto-user-web20-linkedin.png i have started to write new Iphone application named Status Wave, this application is connecting to many social networks and automatically update user’s status via status wave’s multithread server which are selected networks. So, during the development of registration process of Status Wave, i worked with LinkedId API, i have to consider Linked network.

Then i saw that linkedin uses oAuth mechanism for accessing their rest server API like Twitter, LinkedIn, MySpace etc.. But they have small package security differences then other networks, some api functions are only accept oauth paremeters via httpheader. I saw that, many people confused about using http headers with HttpWebRequest and HttpWebResponse classes of C#.

During the creating example project, i googled and i found an C# oAuth example code from code.google.com, it was developed by Eran Sandler and i changed some lines in this code then i created an example C# ASP.NET project.

Some notes about the LinkedIn API : Normally oAuth providers expects these parameters from your program.

  • oauth_consumer_key
  • oauth_callback
  • oauth_version
  • oauth_signature_method
  • oauth_signature
  • oauth_timestamp
  • oauth_nonce
  • oauth_token
  • oauth_token_secret

But linkedin expects these paremeters as well as oauth_verifier parameters. Linked in oauth mechanism slightly different then others ha ?

I want to say “Thank you” to Taylor Singletary who is a developer in LinkedIn.

You can found working example project attached of this post. Or you can also follow this project’s forum posts onto linkedIn forum.

LinkedIn oAuth C# example project

Copyright © 1994-2009 | Some rights reserved Please feel free to contact me for any Questions or Feedback.
Entries and comments feeds. Valid XHTML and CSS.