Skip to content

Instantly share code, notes, and snippets.

@takawitter
Created April 26, 2011 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takawitter/941564 to your computer and use it in GitHub Desktop.
Save takawitter/941564 to your computer and use it in GitHub Desktop.
public TwitterFuture getTrends() throws TwitterException {
final HttpResponse res = get(conf.getRestBaseURL() + "trends.json");
return new TwitterFuture(){
@Override
public void get(TwitterListener listener) throws TwitterException {
listener.gotTrends(new TrendsJSONImpl(res, conf));
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment