3

Using the last version of the tweetsharp library for the twitter api, i am trying to get all the followers for a specific user. But i can only get the last 100 followers with this method:

IEnumerable<TwitterUser> f_followers = service.ListFollowersOf(user_id);

This method has a second parameter which is "long cursor", but i don't know how to use it. I tried to use it as an offset but it does not work. I presume that after each request, i need a cursorNext that i can use for the next request.

IEnumerable<TwitterUser> f_followers = service.ListFollowersOf(user_id, cursorNext);

Thank you for your help.

4

1 回答 1

3

我根本不知道 tweetsharp,但是根据以下链接,您可以尝试以下操作:

var followers = service.ListFollowersOf(user_id);
while (followers.NextCursor != null)
{
    followers =  service.ListFollowersOf(user_id, followers.NextCursor);
}
于 2012-01-05T13:58:33.063 回答