getFeaturedReport: Retrieve full featured reports.

View source: R/getFeatured.R

getFeaturedReportR Documentation

Retrieve full featured reports.

Description

getFeaturedReport provides access to detailed featured data from the appFigures web API

Usage

getFeaturedReport(product_id, end_date, start_date, country, curlHandle,
  verbose = FALSE, orgJSON = FALSE)

Arguments

product_id

Numeric. A single appFigures-assigned product id.

end_date

Character string or date object. Date of last ranks to be reported. Defaults to today. See Details.

start_date

Character string or date object. Date of first ranks to be reported. Defaults to the last 31 days. See Details.

country

One or more country iso codes. Defaults to all countries. 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 start_date and end_date, if the supplied argument can be interepreted as a date or POSIX object, any hour, minute, or second is ignored. If a string is supplied, it should have the format: 'yyyy-MM-dd'. The largest date range for a feature report is limited to 31 days. Anything larger will return an error.

For country arguments, a complete list of supported languages can be found using getStoreData.

Value

A single R dataframe.

See Also

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


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