tdmalone / working-plusplus

Like plusplus.chat, but one that actually works, because you can host it yourself 😉
MIT License
23 stars 41 forks source link

Cursor-based pagination to get all users list #41

Open shawool opened 3 years ago

shawool commented 3 years ago

Slack API (https://api.slack.com/docs/pagination) methods return results using a cursor-based approach . getUsersList doesn't return all users if the Slack user list is above max page limit (1000). Added cursor-based pagination to iterate and pull all users from slack.