The twitter4j packages are not clear to me. For instance how would I retrieve 500 tweets containing a certain hashtag? How would I declare a user and get all their tweets in the past week? For example, I would like the following:
User brit = new User("Britney Spears");
List<Tweet> britTweets = brit.getAllTweets(); //assuming this method exists
My problem is I cannot instantiate a User since it is declared abstract! What I see so far is a bunch of interfaces with a set of great functions that I do not know how to use.
- Could someone show me the structure of this library so I can figure out how to use it?
- What objects can I instantiate to use methods from the trending, User, and timeline interfaces?