Skip to content

Instantly share code, notes, and snippets.

@javipacheco
Created November 8, 2012 13:19
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 javipacheco/4038771 to your computer and use it in GitHub Desktop.
Save javipacheco/4038771 to your computer and use it in GitHub Desktop.
RESTrung GET example
RestClientFactory.getClient().getAsync(new ContextAwareAPIDelegate<Target>(context, Target.class) {
@Override
public void onResults(Target response) {
//handle results here in the main thread
}
@Override
public void onError(Throwable e) {
//handle errors here in the main thread
}
}, "http://url/%s/%s", "param1", "param2");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment