Description Usage Arguments Value References
View source: R/shopr_get_products.R
Retrieve products and related data for a shop
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | shopr_get_products(
shopURL,
APIKey,
APIPassword,
APIVersion = NULL,
max_pages = Inf,
limit_per_page = 250L,
ids = NULL,
since_id = 0L,
title = NULL,
vendor = NULL,
handle = NULL,
product_type = NULL,
collection_id = NULL,
created_at_min = NULL,
created_at_max = NULL,
updated_at_min = NULL,
updated_at_max = NULL,
published_at_min = NULL,
published_at_max = NULL,
published_status = NULL,
fields = NULL,
verbose = FALSE
)
|
shopURL |
shop URL (e.g. 'https://superstore-1.myshopify.com') |
APIKey |
API key |
APIPassword |
API password |
APIVersion |
API version (default = |
max_pages |
maximum pages of records to return (i.e. the maximum number of HTTP GET requests to make). (default
= |
limit_per_page |
maximum number of records to return per page (i.e. per HTTP GET request). Should be in the range [1, 250]. (default = 250) |
ids |
vector of product ids like c(123, 456) (default = |
since_id |
only return orders with id > since_id (default = 0) |
title |
product title (default = |
vendor |
product vendor (default = |
handle |
product handle (default = |
product_type |
product type (default = |
collection_id |
collection id (default = |
created_at_min |
POSIXct datetime or a string with format like '2014-04-25T16:15:47-04:00' (default =
|
created_at_max |
POSIXct datetime or a string with format like '2014-04-25T16:15:47-04:00' (default =
|
updated_at_min |
POSIXct datetime or a string with format like '2014-04-25T16:15:47-04:00' (default =
|
updated_at_max |
POSIXct datetime or a string with format like '2014-04-25T16:15:47-04:00' (default =
|
published_at_min |
POSIXct datetime or a string with format like '2014-04-25T16:15:47-04:00' (default =
|
published_at_max |
POSIXct datetime or a string with format like '2014-04-25T16:15:47-04:00' (default =
|
published_status |
published status. Should be |
fields |
fields to return. Common fields include: {'id', 'title', 'body_html', 'vendor', 'product_type', created_at', 'variants', 'options', 'images'} Only top-level fields are supported (i.e. you can't subset nested fields. For example, you can select 'variants'
but not variants' subfields like 'price' or 'sku') (default = |
verbose |
should progress messages be printed? (default = |
list of data.tables. If fields
is NULL
, all of the following will be returned:
products
variants
options
images
image.variant_ids
https://help.shopify.com/en/api/reference/products/product#index
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.