lookup: Looks up product information

Description Usage Arguments Details Value Examples

View source: R/lookup.R

Description

lookup gives access to item price and availability in real-time.

Usage

1
2
lookup(key = auth_cache$KEY, lsPublisherId = NULL, id = NULL,
  upc = NULL, list_output = FALSE)

Arguments

key

Your API access key.

lsPublisherId

Your LinkShare Publisher Id.

id

vector of item ids.

upc

upc of the item.

list_output

Indicator for list output.

Details

An API key will be required to run this function and can be acquired by creating an account on the following website https://developer.walmartlabs.com/member.

For more information refer to the original documentation https://developer.walmartlabs.com/docs/read/Home.

Response formats are described at the url https://developer.walmartlabs.com/docs/read/Item_Field_Description.

Value

A tibble with 15 columns in base response format.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
key <- "************************"

## Up to 20 ids can be called at once.
lookup(id = c(12417882:12417937), key = key)

lookup(id = 12417832, key = key)

lookup(upc = 10001137891, key = key)

## First argument will be used with conflicting arguments.
lookup(id = 12417837, upc = 10001137891, key = key)

lookup(id = 12417832, key = key, list_output = TRUE)

## End(Not run)

walmartAPI documentation built on May 2, 2019, 12:35 p.m.