Twitter 410
in
Contributed Library Questions
•
4 months ago
It seems that Twitter API changed from 1.0 to 1.1, and some features do not work. In my code I receive the status error 410. Does anyone knows how can this be fixed? Here is some of the code I use.
void loadTweets1() {
try {
Query query1 = new Query(textTwitter1);
query1.setGeoCode(new GeoLocation(35.31614, 25.13324), twitterRadius, Query.KILOMETERS);
query1.setRpp(1000);
query1.setSince(yesterdayDate);
QueryResult result1 = myTwitter1.search(query1);
tweets1 = (ArrayList) result1.getTweets();
Date d = tweets1.getCreatedAt();
println(tweets1);
}
catch (TwitterException te) {
println("Couldn't connect: " + te);
}
}
1