Friends list of a friend using Twitter4J

前端 未结 7 890
旧时难觅i
旧时难觅i 2021-01-12 23:40

How can I obtain the friends list of a friend or follower using Twitter4J?

Using getFriendsId(), I\'m only able to retrieve the friend\'s/follower\'s list of that cu

相关标签:
7条回答
  • 2021-01-13 00:43

    What about something like get Friends List? https://dev.twitter.com/docs/api/1.1/get/friends/list

    According to the docs:

    Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").

    There is an interface for this in twitter4j.api, but I can't figure out how to use it:

    PagableResponseList<User> getFriendsList(String screenName, long cursor) throws TwitterException;
    
    0 讨论(0)
提交回复
热议问题