Skip to content

Instantly share code, notes, and snippets.

@fortheday
Created January 25, 2018 14:46
Show Gist options
  • Save fortheday/a378cc542c63122638c52ad3a4ef2a42 to your computer and use it in GitHub Desktop.
Save fortheday/a378cc542c63122638c52ad3a4ef2a42 to your computer and use it in GitHub Desktop.
class Program
{
const string strLine = "----------------------------------------";
#region Credentials
const string _customerKey = "";
const string _customerSecret = "";
const string _userAccessToken = "";
const string _userAccessSecret = "";
#endregion
static readonly string strKeyword = "github";
static void Main(string[] args)
{
Auth.SetUserCredentials(_customerKey, _customerSecret, _userAccessToken, _userAccessSecret);
var stream = Stream.CreateFilteredStream(null, TweetMode.Compat);
stream.AddTrack(strKeyword, tweet => { Console.WriteLine(tweet.Text); });
stream.StartStreamMatchingAllConditions();
while (true)
Thread.Sleep(1000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment