Get Images from HomeTimeline

Oct 28, 2013 at 7:07 PM
Hi,

i am sorry i am a horrible Newbie to C# , i tested around with your great Library and i wanted to
know if i can use "DownloadProfileImage" also from a Hometimeline. I used your example
"GetHomeTimeline" and it works great. You used "Itweet" in this example i dont know if i
could get the Image Information here as well. If i understood your documentation the ProfileImage can be accessed from the USER information. Is there a User information in the GetHomeTimeline available?

Thanks,

chris
Coordinator
Oct 28, 2013 at 8:34 PM
Hi there,

Are you willing to download an image included in a Tweet or the image of the User who posted the Tweet?

Linvi
Oct 28, 2013 at 8:59 PM
Hey,

I wanted to download the Profile image of the User who posted the tweet.


chris
Coordinator
Oct 28, 2013 at 9:13 PM
Edited Oct 29, 2013 at 11:48 AM
Nothing more simple! A Tweet contains an IUser which is the property called Creator.
So you simply have to use this code :)
ITokenUser u = new TokenUser(token);
IList<ITweet> homeTimeline = u.GetHomeTimeline(20, true, true);

Console.WriteLine(u.LatestHomeTimeline.Count);

foreach (ITweet tweet in homeTimeline)
{
    tweet.Creator.DownloadProfileImage(token);
   Console.WriteLine("\n\n{0}", tweet.Text);
}
Linvi
Marked as answer by linvi on 10/29/2013 at 4:37 AM
Oct 29, 2013 at 11:15 AM
Hi Linvi,

Thanks a lot, thats a great help!! : )


chris