예제 #1
0
        private void config(object sender, RoutedEventArgs e)
        {
            OAuthz["consumer_key"] = "uIVVbzq2RbTYuGU2NIV9Wclc4";
            OAuthz["consumer_secret"] = "5lFp89RKHEzJ8IFyjfnQk0kmGWEqpb0otFI9gF9i2jLsR7D0Pz";
            OAuthResponse requestToken = OAuthz.AcquireRequestToken("https://api.twitter.com/oauth/request_token", "POST");

            // start up the browser to get the access token
            var url = "https://api.twitter.com/oauth/authorize?oauth_token=" + OAuthz["token"];
            System.Diagnostics.Process.Start(url);
            verifyTwitter2 verifyTWindow = new verifyTwitter2();
            verifyTWindow.Show();
            verifyTWindow.RaiseCustomEvent += new EventHandler<CustomEventArgs>(verifyTWindow_RaiseCustomEvent);
        }
예제 #2
0
        private void config(object sender, RoutedEventArgs e)
        {
            OAuthz["consumer_key"]    = "uIVVbzq2RbTYuGU2NIV9Wclc4";
            OAuthz["consumer_secret"] = "5lFp89RKHEzJ8IFyjfnQk0kmGWEqpb0otFI9gF9i2jLsR7D0Pz";
            OAuthResponse requestToken = OAuthz.AcquireRequestToken("https://api.twitter.com/oauth/request_token", "POST");

            // start up the browser to get the access token
            var url = "https://api.twitter.com/oauth/authorize?oauth_token=" + OAuthz["token"];

            System.Diagnostics.Process.Start(url);
            verifyTwitter2 verifyTWindow = new verifyTwitter2();

            verifyTWindow.Show();
            verifyTWindow.RaiseCustomEvent += new EventHandler <CustomEventArgs>(verifyTWindow_RaiseCustomEvent);
        }