-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get a specified number of post #39
Comments
Number of posts: facebook.getPosts(new Callback<>() {
@Override public void onCompleted(List<Post> posts) {
System.out.println("number of posts: " + posts.size());
}
@Override public void onError(Throwable e) {
// ...
}
}); Retrieve a post by specific post id: @RetroFacebook
abstract class Facebook {
@GET("/{post-id}")
abstract void getPost(@RetroFacebook.Path("post-id") String postId, Callback<Post> callback);
} facebook.getPost(new Callback<>() {
@Override public void onCompleted(List<Post> posts) {
System.out.println("Post: " + posts.get(0));
}
@Override public void onError(Throwable e) {
// ...
}
}); |
Hi @yongjhih this piece of code @RetroFacebook where do it put it if i use gradle to import the code ? |
|
Hi @yongjhih thank you for your lib.
I want to know how can i get a specified number of post with callback.
lokking forward to hearing from you.
best regards,
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: