presta_extract_ids: Extract ids from Prestashop Table

Description Usage Arguments Value

View source: R/presta_extract_ids.R

Description

This function enables you to extract the ids from a selected Prestashop table. To do so, you just need to indicate the hostname, token and the table from where you want to extract ids.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
presta_extract_ids(
  token,
  hostname,
  endpoint = "orders",
  date_min = NULL,
  date_max = NULL,
  date_column = "date_add",
  verbose = FALSE,
  default_chunks = 2
)

Arguments

token

Webservice Key.

hostname

Hotname of your website. For example, si your URL is https://www.test.com/, the hostname is www.test.com. On the other hand, if your URL is https://test.com/ your hostname is test.com.

endpoint

Indicates the table you want to retrieve data from. The webservice should have permissions.

date_min

Minimum date to get data from in YY-MM-DD format. Not required. If used, date_max is also required.

date_max

Maximum date to get data from YY-MM-DD format. Not required. If used, date_min is also required.

verbose

Whether you want to see the process of extraction.

default_chunks

In case too much info is asked, the number of date partitions that will be created for smoother extractions.

date_add

Column to use for filtering data by date. Defaul is date_add.

Value

A vector with all the ids


Ander-LIN3S/prestashopR documentation built on May 7, 2021, 2:10 a.m.