public IEnumerable <string> GetTweets(string userId) { TwitterAccesser tAccess = new TwitterAccesser(); var tweets = tAccess.GetTweets(userId, 10); return(tweets.Result); }
static void Main(string[] args) { TwitterAccesser twitterAccess = new TwitterAccesser(); Console.WriteLine("Welcome, the following are my 10 most recent tweets:\n\n"); var tweets = twitterAccess.GetTweets("@pradeep87blore1", 10).Result; foreach (var tweet in tweets) { Console.WriteLine(tweet + "\n"); } Console.WriteLine("Press any key to exit"); Console.ReadKey(); // To prevent the console app from existing }