View Source ExPipedrive.Page (ex_pipedrive v0.1.0)

A single cursor-paginated page of Pipedrive API v2 results.

Prefer this over bare lists for v2 list endpoints so callers can follow next_cursor (or use ExPipedrive.Cursor.stream/2).

Summary

Functions

True when there is no further page to fetch.

Builds a page from decoded entities and a raw API response body.

Types

@type t() :: %ExPipedrive.Page{
  data: list(),
  limit: (pos_integer() | nil) | nil,
  next_cursor: (String.t() | nil) | nil
}

Functions

@spec done?(t()) :: boolean()

True when there is no further page to fetch.

@spec from_items(list(), map()) :: t()

Builds a page from decoded entities and a raw API response body.