Skip to content
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

How to get more than 20 of the people you're following? #106

Closed
xpressmobtech opened this issue Apr 8, 2017 · 3 comments
Closed

How to get more than 20 of the people you're following? #106

xpressmobtech opened this issue Apr 8, 2017 · 3 comments

Comments

@xpressmobtech
Copy link

Can only get the latest 20 people i've followed , when i need all. also how to get following used-id's not blog id

@xpressmobtech
Copy link
Author

List blogs = client.userFollowing();
for (Blog blog : blogs) {
System.out.println("FOR statement BLOGS");
System.out.println("TUMBLR BLOG blogs - " + blog);
System.out.println("TUMBLR BLOG Title - " + blog.getTitle());
System.out.println("TUMBLR BLOG NAMES - " + blog.getName());
// System.out.println("TUMBLR BLOG Followers" + blog.followers());
}

@jesuiskirill
Copy link

Check API reference. You'll need to specify limit and/or offset if you want to get mote.
https://www.tumblr.com/docs/en/api/v2#blog-followers

you will likely need to use this method

    /**
     * Get the blogs the given user is following
     * @return a List of blogs
     */
    public List<Blog> userFollowing(Map<String, ?> options) {
        return requestBuilder.get("/user/following", options).getBlogs();
    }

@xpressmobtech
Copy link
Author

perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants