My application is able re tweet only 15 tweets at a time. Why is that, when the twitter limit is of 1000/day?


#1

I am writing an application, that also re tweets based upon the hash-tag entered by the user. But in one run, I am able to re tweet only 15 tweets. Why is that, when the twitter limit is of 1000 ?

Code that re tweets :

            do {
                QueryResult result = twitter.search(new Query("#ghazal "));
                List<Status> statusList = result.getTweets();
                while(i.hasNext()) {
                    Status s = (Status) i.next();
                    long id = s.getId();
                    c = new Counter();
                    int totalUpdates = c.getUpdateCount();

                    if(totalUpdates <= 30) { // continue to retweet
                        if(!s.isRetweeted() && !s.isRetweetedByMe()) {
                            twitter.retweetStatus(id);
                            totalUpdates++;
                            c.setUpdateCount(totalUpdates);
                        }
                    } else { // Daily Limit Reached
                        limitReached = true;
                    }
                }
            } while(!limitReached);

Note- I am writing the application in Java and using twitter4j as the library.