public void AuthenticateTwitter() { GetOAuthForm f = new GetOAuthForm(CONSUMER_KEY, CONSUMER_SECRET); f.ShowDialog(); if (f.OAuthTokenResponse != null) { AccessToken = f.OAuthTokenResponse.Token; AccessTokenSecret = f.OAuthTokenResponse.TokenSecret; UserDetails = f.OAuthTokenResponse; } else { System.Windows.Application.Current.Shutdown(); } }
public void AuthenticateTwitter() { GetOAuthForm f = new GetOAuthForm(CONSUMER_KEY, CONSUMER_SECRET); f.ShowDialog(); if (f.OAuthTokenResponse != null) { AccessToken = f.OAuthTokenResponse.Token; AccessTokenSecret = f.OAuthTokenResponse.TokenSecret; UserDetails = f.OAuthTokenResponse; } }