Skip to contents

[Experimental]

Usage

chemi_amos_product_declaration_keyset_pagination(
  limit,
  cursor = NULL,
  all_pages = TRUE,
  max_pages = 100L
)

Arguments

limit

limit

cursor

cursor

all_pages

TRUE (the default) requests page after page, starting at cursor, until a page comes back empty or the client says it was the last or max_pages is reached, and returns the pages combined. FALSE requests only the page given in cursor.

max_pages

Maximum number of pages requested when all_pages is TRUE. Reaching it stops paging with a warning.

Value

A list of records when all_pages is TRUE, otherwise the original response envelope.

Examples

if (FALSE) { # \dontrun{
chemi_amos_product_declaration_keyset_pagination(limit = 1L, all_pages = FALSE, max_pages = 2L)
} # }