public IList<TwitterStatus> GetProfile(string screenName, int count, bool includeRetweets, bool includeReplies)
{
var result = Query("https://api.twitter.com/1.1/statuses/user_timeline.json",
new[] {
new KeyValuePair<String, String>("screen_name", screenName),
new KeyValuePair<String, String>("count", count.ToString()),
new KeyValuePair<String, String>("include_rts", includeRetweets.ToString()),
new KeyValuePair<String, String>("exclude_replies", (!includeReplies).ToString()),
});
var serializer = new JavaScriptSerializer();
var searchResult = serializer.Deserialize<List<Response>>(result);
return searchResult.Select(s => new TwitterStatus {
CreatedAt = ParseDateTime(s.created_at),
Text = s.text,
User = new TwitterUser {
Id = s.user.id,
Description = s.user.description,
Location = s.user.location,
Name = s.user.name,
ProfileImageUrl = s.user.profile_image_url,
ScreenName = s.user.screen_name
}
}).ToList();
}