GetTwitchAuthToken() public static method

public static GetTwitchAuthToken ( string absoluteUrl ) : string
absoluteUrl string
return string
Esempio n. 1
0
 private void wbTwitchAuth_Navigating(object sender, System.Windows.Navigation.NavigatingCancelEventArgs e)
 {
     Utils.clearIECache();
     if (e.Uri.Host.Trim() == "localhost")
     {
         if (_isStreamer)
         {
             Config.StreamerOAuthKey = Utils.GetTwitchAuthToken(e.Uri.AbsoluteUri);
         }
         else
         {
             Config.BotOAuthKey = Utils.GetTwitchAuthToken(e.Uri.AbsoluteUri);
         }
         this.Close();
     }
 }
Esempio n. 2
0
 private void wbTwitchAuth_Navigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
 {
     Utils.clearIECache();
     MessageBox.Show(e.Url.AbsoluteUri);
     if (e.Url.Host.Trim() == "localhost")
     {
         if (_isStreamer)
         {
             Config.StreamerOAuthKey = "oauth:" + Utils.GetTwitchAuthToken(e.Url.AbsoluteUri);
         }
         else
         {
             Config.BotOAuthKey = "oauth:" + Utils.GetTwitchAuthToken(e.Url.AbsoluteUri);
         }
         this.Close();
     }
 }