예제 #1
0
        /// <summary>
        /// Logon
        /// </summary>
        /// <returns></returns>
        private Twitter.ITwitterAuthorizer PerformAuthorization(string accessToken, string accessSecret, string authenticationKey, string autenthicationSecret)
        {
            Properties.Settings settings = new Properties.Settings();

            var auth = new Twitter.SingleUserAuthorizer
            {
                Credentials = new Twitter.InMemoryCredentials
                {
                    OAuthToken     = accessToken,
                    AccessToken    = accessSecret,
                    ConsumerKey    = authenticationKey,
                    ConsumerSecret = autenthicationSecret,
                },
                UseCompression = true,
            };

            auth.Authorize();

            return(auth);
        }
예제 #2
0
 public TwitterPane()
 {
     Config = new Properties.Settings();
     InitializeComponent();
 }