Sto tentando di autenticare gli account utente in Windows Phone. Ho trovato questa libreria C# per il lavoro (tweetsharp).Autenticazione Twitter senza utilizzare il pin
Il loro esempio è abbastanza chiaro ma usano un codice pin per autenticare l'utente.
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();
Mi chiedevo se è possibile farlo senza il codice PIN? Ho provato app che non richiedono il codice. Questo significa che tweetsharp è obsoleto?
Qualche idea se posso ancora eseguire l'autenticazione con tweetsharp senza utilizzare la parte del pin? O ci sono altri SDK alternativi là fuori per Windows Phone?
xAuth tuttavia non offre accesso alla posta in arrivo dell'utente. E devi anche inviare una richiesta per poterlo usare. – networkprofile
Ho aggiornato la mia risposta. Per favore guarda questo post interessante su xAuth: http://yourhead.tumblr.com/post/428643811/five-things-you-didnt-know-about-xauth – Pol