Esempio n. 1
0
 /// <summary>
 /// Deauthorises this instance.
 /// </summary>
 public void deauth( )
 {
     Configuration.singleton()["twitterAccessToken"]       = "";
     Configuration.singleton()["twitterAccessTokenSecret"] = "";
 }
Esempio n. 2
0
        /// <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"] = "";
        }