linvi / tweetinvi

Tweetinvi, an intuitive Twitter C# library for the REST and Stream API. It supports .NET, .NETCore, UAP (Xamarin)...
MIT License
1.01k stars 220 forks source link

FollowersIterator versus FriendsIterator #1199

Open jeromv opened 1 year ago

jeromv commented 1 year ago

First of all, I really like the library :-)

client.Users.GetFollowersIterator( new GetFollowersParameters(userName)) returns an iterator with IUser information in it. client.Users.GetFriendIdsIterator( new GetFriendIdsParameters(userName)) just returns the id's per page, so I have to do an extra call to get the user information. This slows down the performance by a lot.

Am I missing something here?

jeromv commented 1 year ago

https://twitter.com/Jeroenvvl/status/1608828247973978113 shows what I have done so far. I managed to work around the performance problem by calling the API directly after creating a custom FriendsDto from a sample json response. That works, but it would be nicer if I could stick to the TweetInvi methods.