PIN Authentication

I am trying to authenticate user accounts in Windows Phone. I found this C # library for the job (tweetsharp).

Their example is pretty clear, but they use a PIN to authenticate the user.

using TweetSharp;

// Pass your credentials to the service
TwitterService service = new TwitterService("consumerKey", "consumerSecret");

// Step 1 - Retrieve an OAuth Request Token
OAuthRequestToken requestToken = service.GetRequestToken();

// Step 2 - Redirect to the OAuth Authorization URL
Uri uri = service.GetAuthorizationUri(requestToken);
Process.Start(uri.ToString());

// Step 3 - Exchange the Request Token for an Access Token
string verifier = "123456"; // <-- This is input into your application by your user
OAuthAccessToken access = service.GetAccessToken(requestToken, verifier);

// Step 4 - User authenticates using the Access Token
service.AuthenticateWith(access.Token, access.TokenSecret);
IEnumerable<TwitterStatus> mentions = service.ListTweetsMentioningMe();

I was wondering if it is possible to do this without pincode? I tried applications that do not request code. Does this mean that tweetsharp is out of date?

Any idea if I can still authenticate with tweetsharp without using the contact part? Or is there an alternative SDK for a Windows phone?

+5
source share
2 answers

The TweetSharp page also mentions xAuth:

, Twitter xAuth. , xAuth .

using TweetSharp;

// OAuth Access Token Exchange
TwitterService service = new TwitterService("consumerKey", "consumerSecret");
OAuthAccessToken access = service.GetAccessTokenWithXAuth("username", "password");

-, WebBrowser , . https://github.com/danielcrenna/tweetsharp#authenticating-a-browser-application

+1

Tweetsharp Hammock API Twitter. , OAuth twitter -.

, .

+1

All Articles