Hello all!
I wonder if anyone could help me to figure out how to get the amount, as a Java
number, of all retweets of me looking at a specific user, using either twitters API or Twitter4J.
The code below gives me only the last 100 retweets, using Twitter4J!long
public static long getReTweets(){
long amount = 0;
Twitter tweeter = new TwitterFactory().getOAuthAuthorizedInstance(MyUser.getUserAccessToken());
try {
ResponseList retweets = tweeter.getRetweetsOfMe();
amount = retweets.size();
} catch (TwitterException e) {
e.printStackTrace();
}
return amount;
}