/*
   * Re-tweets the specified tweet, returning true in case of success.
   * If error, returns false.
   */
  public boolean doRT(Status tweet) {
    try {
      twitter.retweetStatus(tweet.getId());

      return true;
    } catch (Exception ex) {
      System.err.println("[ERROR] Can't retweet " + tweet.getId());
      ex.printStackTrace();
      return false;
    }
  }
Beispiel #2
0
 public Status retweetStatus(long statusId) throws TwitterException {
   return twitter.retweetStatus((long) statusId);
 }