TwitterService service = new TwitterService();
service.AuthenticateWith("XXXXXX", "XXXXXXX");
// Geting Tweets On Specific Topic
var twts = service.Search("#ghaza", 100);
List<TwitterSearchStatus> resultList = new List<TwitterSearchStatus>(twts.Statuses);
foreach (var twt in resultList)
{
Console.WriteLine(twt.Text);
}
I use this code to get tweets on ghaza there are two things which i want to know
- What should i do to get result in
json
form - This is giving me some strange output in start like:
join karain #IRAN #IRAQ #PAK #SHAM #GHAZA
and after iterating this some time, then it show me the tweets, which i want to get in json
format
I use this:
Console.WriteLine("{0} says '{1}'", twt.User.ScreenName, twt.Text);
but its not working in it.