getStoreData: Retrieve general metadata used in other API requests.

View source: R/getStoreData.R

getStoreDataR Documentation

Retrieve general metadata used in other API requests.

Description

getStoreData can request data on store categories, country abbreviations, supported languages for review translation, and supported currencies from the appFigures web API.

Usage

getStoreData(tables = c("categories", "countries", "currencies",
  "languages", "stores", "sdks"), curlHandle, verbose = FALSE,
  orgJSON = FALSE)

Arguments

tables

Character. One of five choices: "categories", "countries", "currencies", "languages", "stores". See Details.

curlHandle

Provide an instance of the CURLHandle-class from the RCurl package. The default will create a curl handle specific to the function call.

verbose

Logical. Should details of the web request print to the console? Defaults to FALSE.

orgJSON

Logical. Should the JSON string be returned without being converted to R objects? Defaults to FALSE.

Details

For tables set to "categories", "countries", "currencies", or "languages", a single data frame is returned containing the relevant metadata available across all stores. If tables is set to "stores", a list of five data frames is returned. The first four data frames in the list contains all metadata relevant for a particular store (e.g. apple, google_play, etc.). The last data frame summarizes all the supported ad networks.

Value

A data frame containing the appropriate table, or if tables = "stores", a list of five data frames.

See Also

Official documentation: http://docs.appfigures.com/api/reference/v2/data.


appfigures/afapi documentation built on Nov. 13, 2022, 9:27 a.m.