Products for a specific retailer

retailer_products(
  retailer_id,
  product = NA,
  brand = NA,
  sku = NA,
  regex = TRUE,
  ignore_case = TRUE,
  head = FALSE,
  ...
)

Arguments

retailer_id

A retailer ID.

product

Filter by product name (treated as a regular expression).

brand

Filter by product brand (treated as a regular expression).

sku

Filter by SKU.

regex

Should filter be treated as a Regular Expression?

ignore_case

Should case be ignore?

head

Return the data (FALSE) or the number of records (TRUE)?

...

Arguments passed through to paginate().

Value

Product details as a data.frame if head is FALSE, otherwise the number of products that would be returned.

Examples

# Get products for a specific retailer. if (FALSE) { retailer_products(1) retailer_products(118, product = "coffee") retailer_products(118, brand = "Illy") retailer_products(118, product = "coffee", brand = "Illy", head = TRUE) retailer_products(118, sku = "086079") }