I’ve created and uploaded some sample code for using Linkedin’s oauth library in a c# desktop app. Faith Yasar’s c# code was my starting point. A bit of a refactor of the oAuth librarie to include the oauth_callback parameter was needed, as well as code for displaying the login dialog.
Code can be found here in a forum post I made on linkedin.
The code contained includes a test harness as well as the oauth libraries for oauth login dance and Linkein API requests. Oauth login is handled with an embedded webBrowser which is shown modally for the user to login. Upon login completion, dialog will be closed and the token and verifier will be available from the dialogs property.
To use the code, simply Add your Linkedin consumer secret and Consumer key to the OauthLinkedIn.cs file:
private string _consumerKey = "ENTER_YOUR_CONSUMER_KEY"; private string _consumerSecret = "ENTER_YOUR_CONSUMER_SCRET";
Then you can make api calls following a few steps:
OAuthLinkedIn _oauth = new OAuthLinkedIn(); String requestToken = _oauth.getRequestToken(); _oauth.authorizeToken(); String accessToken = _oauth.getAccessToken();</div>
Hope that helps