Liking cljdoc? Tell your friends :D

stripe-clojure.http.pagination.core

Pagination support for Stripe API requests.

Provides version-aware pagination that automatically selects the appropriate pagination strategy:

  • v1: Cursor-based pagination with starting_after/ending_before
  • v2: URL-based pagination with next_page_url
Pagination support for Stripe API requests.

Provides version-aware pagination that automatically selects the appropriate
pagination strategy:
- v1: Cursor-based pagination with starting_after/ending_before
- v2: URL-based pagination with next_page_url
raw docstring

get-paginatorclj

(get-paginator version)

Returns the appropriate paginator for the API version.

Returns the appropriate paginator for the API version.
sourceraw docstring

paginateclj

(paginate method url params options make-request-fn)
(paginate method url params options make-request-fn first-page-result)

Handles pagination for Stripe API requests.

Parameters:

  • method: The HTTP method (:get, :post, etc.)
  • url: The API endpoint URL
  • params: The request parameters
  • options: Additional options, including :auto-paginate?
  • make-request-fn: A function that takes params and makes a single API request
  • first-page-result: (optional) Pre-fetched first page to avoid duplicate request

Returns: If :auto-paginate? is true, returns a lazy sequence of all items across all pages. Otherwise, returns the result of a single API call.

Handles pagination for Stripe API requests.

Parameters:
- method: The HTTP method (:get, :post, etc.)
- url: The API endpoint URL
- params: The request parameters
- options: Additional options, including :auto-paginate?
- make-request-fn: A function that takes params and makes a single API request
- first-page-result: (optional) Pre-fetched first page to avoid duplicate request

Returns:
If :auto-paginate? is true, returns a lazy sequence of all items across all pages.
Otherwise, returns the result of a single API call.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close