iamkubi / pydactyl

Python wrapper for the Pterodactyl Panel API
MIT License
67 stars 21 forks source link

Add a way to collect results from all pages of a PaginatedResponse #48

Closed iamkubi closed 1 year ago

iamkubi commented 2 years ago

PaginatedResponse needs a method to gather all of the results from all pages into a list. Something like:

response = api.nodes.list_nodes()
nodes = response.collect()

This is useful when you want all of the results for all pages up front and don't need to iterate over multiple pages.

iamkubi commented 1 year ago

Fixed by c094443