presta_data: Extract order data from Prestashop

Description Usage Arguments Value

View source: R/presta_data.R

Description

This function enables you to extract data from the Orders table of Prestashop. To do so, you just need to indicate the hostname, token and the orders of which you want to extract data from.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
presta_data(
  token,
  hostname,
  endpoint = "orders",
  id_column = "id",
  ids = NULL,
  group_dim = 100,
  include_nested = F,
  verbose = FALSE
)

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.

ids

A vector including the ids that you want to extract. To extract all the data, set parameter to NULL.

group_dim

The number of rows that will be retrieved in each API call. Set as default if you will retrieve a lot of data.

include_nested

Whether to include related nested data, such as customer groups.

verbose

Whether you want to see the process of extraction.

Value

A dataframe with all extracted data


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