Get Tweet Creator Name

May 11, 2015 at 6:17 PM
How can I take tweet's creator name? It returns null. I want to show tweet's creator name in my program.
May 11, 2015 at 6:24 PM
Hi,

This should not return null. Could you please give me the code you are using?

Linvi
May 11, 2015 at 7:07 PM
I used this code to show "new feeds". I want to show name too.
               var timelineParameter = Timeline.CreateHomeTimelineRequestParameter();
                timelineParameter.ExcludeReplies = true;
                timelineParameter.TrimUser = true;
                var tweets = Timeline.GetHomeTimeline(timelineParameter);
                List<Tweetinvi.Core.Interfaces.ITweet> list = tweets.ToList();

                DataList1.DataSource = list;
                DataList1.DataBind();
May 11, 2015 at 11:54 PM
Hi,

You explicitly request to not get the user information. Change the TrimUser to false and you should get the information.
timelineParameter.TrimUser = false;
Regards,
Linvi
Marked as answer by linvi on 5/11/2015 at 3:54 PM
May 12, 2015 at 2:45 PM
I tried it and it worked. Thanks for help and reply. Have a nice day!