Created
November 8, 2012 13:19
-
-
Save javipacheco/4038771 to your computer and use it in GitHub Desktop.
RESTrung GET example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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