-
Notifications
You must be signed in to change notification settings - Fork 46
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
Don't have support to start
parameter when fetching subscriptions
#32
Comments
Is this library still maintained by Iugu? |
While it's not supported you can do something like this: start = 0
limit = 100
total = 1
while start < total
subscriptions = ::Iugu::Subscription.fetch("?start=#{start}&limit=#{limit}")
start += limit
total = subscriptions.total
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
Today Iugu API endpoint to fetch all subscriptions has a limitation of 100 items per response. To navigate between the pages, we should use a parameter
start
to move between the pages/items. But theIugu::Subscription#fetch
doesn't support this. Would be cool to add this.The text was updated successfully, but these errors were encountered: