Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Search Tweet User

$
0
0
Hi Asad,

Thank you for your feedback, I greatly appreciate it :)

If your question is 'how can I get the creator of a Tweet received from search?' then use the Creator field!
var tweets = Search.SearchTweets("galaxy s5");
foreach (var tweet in tweets)
{
        Console.WriteLine(tweet.Creator.Name);
}
If your question is 'how can I search for tweets from a specific user?' then use the following syntax : 'from:[USER_SCREEN_NAME]'
var tweetsFromUser = Search.SearchTweets("from:ladygaga");
foreach (var tweet in tweetsFromUser 
{
         Console.WriteLine(tweet.Creator.Name);
}
Let me know if this answer your question.
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>