#morteza_34604
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- morteza_34604, 2 minutes ago, 49 messages
What's the question?
Our libraries support auto-pagination. This feature allows you to easily iterate through large lists of resources without having to manually perform the requests to fetch subsequent pages.
Auto-paginating without ending_before will iterate in reverse chronological order. Auto-paginating with ending_before will iterate in forwards chronological order, despite the fact that the order of items in a list API response is always reverse chronological.
Since curl simply emits raw HTTP requests, it doesn't support auto-pagination.
this is
in the docs
but how should I apply
it in my code
const card_transactions = await stripe.issuing.transactions.list(
{ card: cardId, },
{
stripeAccount: accountId,
},
);
this is my code
You should add this in the end:
.autoPagingEach(function(transaction) {
...
});
oook, thanks
Happy to help.