Pagination
Provides the ability to separate and traverse through pages of data.
Pagination Example
do {
var output = try await client.listFundingSources(withLimit: 2, nextToken: nil)
/*
* This result will contain an `items` array of 2 Funding source objects, as
* well as a non-`nil` `nextToken` which is used in the subsequent call.
*/
output = try await client.listFundingSources(withLimit: 2, nextToken: output?.nextToken)
/*
* This result will also contain 2 objects in the `items` array, however the
* `nextToken` will be `nil`, as there are no more objects for the user to
* fetch.
*/
} catch {
// Handle and cleanup after error.
}Last updated