From the documentation at https://stripe.com/docs/api/python#auto_pagination:
To use the auto-pagination feature in Python, simply issue an initial "list" call with the parameters you need, then call auto_paging_iter() on the returned list object to iterate over all objects matching your initial parameters.
With this code example:
customers = stripe.Customer.all(limit=3)
for customer in customers.auto_paging_iter():
# Do something with customer
However using this code the params that are passed in initially do not get saved here:
|
def list(cls, api_key=None, idempotency_key=None, |
so the next trip through the params will be empty:
|
params = dict(self._retrieve_params) |
From the documentation at https://stripe.com/docs/api/python#auto_pagination:
With this code example:
However using this code the params that are passed in initially do not get saved here:
stripe-python/stripe/resource.py
Line 391 in efe1ecc
so the next trip through the params will be empty:
stripe-python/stripe/resource.py
Line 328 in efe1ecc