singer_sdk.pagination.LegacyPaginatedStreamProtocol

class singer_sdk.pagination.LegacyPaginatedStreamProtocol[source]

Protocol for legacy paginated streams classes.

__init__(*args, **kwargs)[source]
get_next_page_token(response, previous_token)[source]

Get the next page token.

Parameters:
  • response (requests.Response) – API response object.

  • previous_token (TPageToken | None) – Previous page token.

Return type:

TPageToken | None