C# oAuth example project for LinkedIn
Posted by fyasar - 10/12/09 at 03:12:29 pm
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
9 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment
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.
Completely I share your opinion. It is excellent idea. It is ready to support you.
Comment by Каталог статей — January 26, 2010 #
Yes, thank you for your comment
Comment by fyasar — March 8, 2010 #
Hello sir , I had used “C# oAuth example project for LinkedIn”
And my post data is
oauth_consumer_key=ww2UBw4qj4AteTbFIuO1ypXRVgCxyJRo57Ps3ZkG5INow_2WG2cSP3xGszQKU2if&oauth_nonce=9528328&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1277878571&oauth_version=1.0&oauth_signature=%2fqXEPaUuY5T%2fmo8c92th%2bYmbAWo%3d
The remote server returned an error: (400) Bad Request.
Sir please give me a reply as soon as possible ..
Comment by Syam.s — June 30, 2010 #
Hi I need to use Search API but I am not able to do so. I am using c# code posted by Fatih i.e. linkedinAuth. Below is what I am trying to do, can anyone point me where I am wrong..
_oauth.Token = txtAccessToken.Text;
_oauth.TokenSecret = txtAccessTokenSecret.Text;
_oauth.Verifier = txtoAuth_verifier.Text;
xmlSearch = “http://api.linkedin.com/v1/people-search?keywords=Tim%20O%5CReilly”;
string responseSearch = _oauth.APIWebRequest(”PUT”, “http://api.linkedin.com/v1/people-search”, “”);
I am getting error here, is the above format correct that I am using?
Thanks.
Comment by sujit — July 4, 2010 #
I want to post quick hello and want to say appriciate for this good article. 4t9kyZAqn2g3mQ
Comment by Grace — July 7, 2010 #
Syam.s,
Can you provide me more details about your problem ?
Comment by fyasar — July 8, 2010 #
Grace,
Thank you
Comment by fyasar — July 8, 2010 #
sujit,
I would like to check your code part. It seems correct, otherwise you can also contact to Taylor on LinkedIn forums about your problem.
Comment by fyasar — July 8, 2010 #
Adding to my bookmarks cheers, needed some more images though.
Comment by Free Avatars — August 13, 2010 #