#bilalahmer

1 messages · Page 1 of 1 (latest)

thin thicketBOT
past marsh
#

Hi! Let me help you with this.

#

No, you have to use pagination and get each batch one by one.

simple crow
#

Just for calirfication like
customers = Stripe::Customer.list({limit: 3})
will get only 3 customers and the below code will only do something with only the above **3 customers ** ?
`customers.auto_paging_each do |customer|

Do something with customer

end`

or will it pull all customers in batches of 3 until we gets all the customers ?

past marsh
#

This will interate over all customers, but limit decides how often does it makes HTTP requests.

simple crow
#

Yeah just wanted to confirm in the end it will iterate over all the customers regardless of the limit right ?

past marsh
#

Yes

simple crow
#

Thankyou 🙂

past marsh
#

Happy to help!