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

FollowersIterator versus FriendsIterator #1199

Open
jeromv opened this issue Dec 30, 2022 · 1 comment
Open

FollowersIterator versus FriendsIterator #1199

jeromv opened this issue Dec 30, 2022 · 1 comment

Comments

@jeromv
Copy link

jeromv commented Dec 30, 2022

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
Copy link
Author

jeromv commented Dec 31, 2022

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.

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
@jeromv and others