tags:

views:

282

answers:

2

Hi!

I'm using Twitter4J API for my application. I want to get all the statuses I had on my Twitter account (or if not all, most of them). Is this possible? Currently I am using getUserTimeline() but this only retrieves the last 20...

Thanks a lot and regards,

Krt_Malta

+1  A: 

Twitter doesn't allow searching for all the tweets (they are expired), so you'll only be able to query as far back as Twitter allows.

From Twitter

We also restrict the size of the search index by placing a date limit on the updates we allow you to search. This limit is currently around 1.5 weeks but is dynamic and subject to shrink as the number of tweets per day continues to grow.

Andy
Ok it seems not possible to get all the tweets you ever had however Paging seems to get more statuses than 20
Krt_Malta
A: 
// retrieves the first page's 200 tweets
getUserTimeline(new Paging(1, 200));
Krt_Malta