NAME

SignalWire::REST::Pagination - Cursor-based pagination iterator.

SYNOPSIS

use SignalWire::REST::Pagination;

my $it = SignalWire::REST::Pagination::PaginatedIterator->new(
    http     => $client->_http,
    path     => '/api/fabric/addresses',
    params   => { page_size => 25 },
    data_key => 'data',
);
while (defined(my $item = $it->next)) {
    ...
}

DESCRIPTION

Mirrors the Python signalwire.rest._pagination.PaginatedIterator. Walks the links.next cursor until no further page is advertised. Each fetch is performed via the SDK's SignalWire::REST::HttpClient so authentication and base-URL handling is shared with the rest of the SDK.