开发者

How to implement "you might also want to follow"

开发者 https://www.devze.com 2023-04-02 11:13 出处:网络
I am using twitter4j to follow twitter accounts, I would like to know how to implement \"you might also want to f开发者_StackOverflowollow\" and \"similar to @foo\" using twitter4j API.

I am using twitter4j to follow twitter accounts, I would like to know how to implement "you might also want to f开发者_StackOverflowollow" and "similar to @foo" using twitter4j API.

Is there a way to fetch this information dynamically using this API?


If you are looking for suggested user list, you should look UserMethods Interface that has the method

ResponseList<User> getUserSuggestions(java.lang.String categorySlug)
                                      throws TwitterException

This method should match with the Twitter API GET users/suggestions/:slug

Since Twitter Interface is sub interface of that, you could call that method and get the suggested list from the user.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号