/// <summary> /// Deauthorises this instance. /// </summary> public void deauth( ) { Configuration.singleton()["twitterAccessToken"] = ""; Configuration.singleton()["twitterAccessTokenSecret"] = ""; }
/// <summary> /// Authorises the specified pin code. /// </summary> /// <param name="pinCode">The pin code.</param> public void authorise(string pinCode) { OAuthTokenResponse accessToken = OAuthUtility.GetAccessToken(_consumerKey, _consumerSecret, Configuration.singleton()["twitterRequestToken"], pinCode); Configuration.singleton( )["twitterAccessToken"] = _accessToken = accessToken.Token; Configuration.singleton( )["twitterAccessTokenSecret"] = _accessTokenSecret = accessToken.TokenSecret; Configuration.singleton( )["twitterRequestToken"] = ""; }