GetTweetsFromList() Function Keeps Returning Nul

Feb 27, 2015 at 9:40 PM
Hi,
Whenever I try to retrieve all list of tweets in my profile using the code below I keed getting MyTweets to be null.

IEnumerable<ITweet> myTweets = TweetList.GetTweetsFromList(MyProfile.ID);

Is there another way I can retrieve the tweets in my profile aside this?

Thank You.
Coordinator
Feb 27, 2015 at 10:27 PM
Edited Feb 27, 2015 at 10:27 PM
TweetList is not a profile, I think you want to use the Timeline instead.
var tweets = Timeline.GetHomeTimeline();
Linvi
Marked as answer by linvi on 3/6/2015 at 4:08 AM
Feb 27, 2015 at 10:45 PM
Thanks Linvi.

I am able to retrieve the tweets in my Timeline with this

IEnumerable<ITweet> myTweets = Timeline.GetUserTimeline(MyProfile.ID, MyProfile.StatusCount);

But I have over a thousand Tweet from my profile but it keeps giving me just 199 despite setting the count to the max.

How can I achieve this?
Coordinator
Feb 28, 2015 at 5:41 PM
You need to use the MaxId parameter and specify the id of the oldest tweet you have received from the previous query.

Cheers,
Linvi
Marked as answer by linvi on 3/6/2015 at 4:08 AM