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

Get all results instead of paged #46

Open
robyedlin opened this issue Sep 19, 2016 · 0 comments
Open

Get all results instead of paged #46

robyedlin opened this issue Sep 19, 2016 · 0 comments

Comments

@robyedlin
Copy link

robyedlin commented Sep 19, 2016

It would be really handy to add a method for retrieving all results, rather than just paged. I can work on it and submit a PR if you want.

Here's an example method from lib/createsend/list.rb:

    # Gets paged active subscribers for this list.
    def active(date="", page=1, page_size=1000, order_field="email",
      order_direction="asc")
      paged_result_by_date("active", date, page, page_size, order_field,
        order_direction)
    end

I would add something below it like:

    # Gets all active subscribers for this list.
    def all_active(date="")
      all_results_by_date("active", date)
    end
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

1 participant