grishka / Houseclub

A barebones unofficial Android app for Clubhouse
The Unlicense
2.36k stars 399 forks source link

get_followers and get_following max out at 400 users #313 #314

Open transitive-bullshit opened 3 years ago

transitive-bullshit commented 3 years ago

Describe the bug

I'm the author of https://github.com/transitive-bullshit/clubhouse, an open source TypeScript wrapper around the Clubhouse API.

I've taken a lot of inspiration from this repo; thank you so much @grishka for your amazing work 🙏 💕 🙏

The API has a specific issue where /get_followers and /get_following only ever return up to 400 users, regardless of page_size and page. So if I set page_size to 50, I can get 10 pages but only ever access up to a total of 400 users.

To Reproduce

See related bug here: https://github.com/transitive-bullshit/clubhouse/issues/2 and my code implementation here: https://github.com/transitive-bullshit/clubhouse/blob/master/packages/clubhouse-client/src/clubhouse-client.ts#L289

Expected behavior

For users with more than 400 followers, we should be able to use the clubhouse API to access all of them in a paginated fashion, with pagination working past 400 users.

Screenshots

N/A

Smartphone (please complete the following information):

Additional context

Given your extensive use of the Clubhouse API, I figured that you've probably run into this limitation and I was wondering if you were able to work around it?

Thanks!