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); }
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); }