Created
January 25, 2018 14:46
-
-
Save fortheday/a378cc542c63122638c52ad3a4ef2a42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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