shopr_get_products_count: Get Products Count

Description Usage Arguments Value References

View source: R/shopr_get_products_count.R

Description

Retrieve the number of products for a shop satisfying some criteria

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
shopr_get_products_count(
  shopURL,
  APIKey,
  APIPassword,
  APIVersion = NULL,
  ids = NULL,
  since_id = NULL,
  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
)

Arguments

shopURL

shop URL (e.g. 'https://superstore-1.myshopify.com')

APIKey

API key

APIPassword

API password

APIVersion

API version (default = NULL -> use the latest version)

ids

vector of product ids like c(123, 456) (default = NULL)

since_id

only consider products with id > since_id (default = 0)

title

product title (default = NULL)

vendor

product vendor (default = NULL)

handle

product handle (default = NULL)

product_type

product type (default = NULL)

collection_id

collection id (default = NULL)

created_at_min

POSIXct datetime or a string with format like '2014-04-25T16:15:47-04:00' (default = NULL)

created_at_max

POSIXct datetime or a string with format like '2014-04-25T16:15:47-04:00' (default = NULL)

updated_at_min

POSIXct datetime or a string with format like '2014-04-25T16:15:47-04:00' (default = NULL)

updated_at_max

POSIXct datetime or a string with format like '2014-04-25T16:15:47-04:00' (default = NULL)

published_at_min

POSIXct datetime or a string with format like '2014-04-25T16:15:47-04:00' (default = NULL)

published_at_max

POSIXct datetime or a string with format like '2014-04-25T16:15:47-04:00' (default = NULL)

published_status

published status. Should be NULL or one of {'published', 'unpublished', 'any'}. (default = NULL)

Value

number of products

References

https://help.shopify.com/en/api/reference/products/product#count


GormAnalysis/shopr documentation built on Jan. 10, 2022, 1:42 a.m.