Price history for a specific product

product_prices(product_id, head = FALSE, ...)

Arguments

product_id

A product ID.

head

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

...

Arguments passed through to paginate().

Value

Price history as a data.frame if head is FALSE, otherwise the number of price history entries that would be returned.

Examples

# Price history for a specific product. if (FALSE) { # Detailed price history for product with ID = 1. product_prices(1) # Number of entries in price history for product with ID = 1. product_prices(1, head = TRUE) }