Skip to content

Instantly share code, notes, and snippets.

@yusuke
Created July 7, 2011 06:27
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 yusuke/1068997 to your computer and use it in GitHub Desktop.
Save yusuke/1068997 to your computer and use it in GitHub Desktop.
HttpClient client = HttpClientFactory.getInstance(ConfigurationContext.getInstance());
HttpResponse res = client.request(new HttpRequest(RequestMethod.GET,"http://api.twitter.com/statuses/show/1000.json", null, null, null));
System.out.println(res.asJSONObject());
System.out.println("--------");
System.out.println(res.asString());
System.out.println("--------");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment