searchProducts: Search products by name or developer.

View source: R/searchProducts.R

searchProductsR Documentation

Search products by name or developer.

Description

searchProducts searches for a product by name or developer in the appFigures web API.

Usage

searchProducts(term, filter = NULL, page = 1, count = 25, curlHandle,
  verbose = FALSE, orgJSON = FALSE)

Arguments

term

A character string to search for. See Details.

filter

NULL value or a character string. Acceptable string values are: "ios", "mac", "google", and "amazon". Default NULL value returns all results.

page

A numeric value indicating which page of results to show. Defaults to the first page.

count

A numeric value indicating the number of results to show in a page. Defaults to 25.

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 the term argument, prefix the string with @name= or @developer= if you want to search those fields specifically. Any spaces included in the term string will return an error. Instead, separate multiple terms with '+'.

Value

A data frame containing all publicly available fields. Fields containing meta data will be added later.

See Also

Official documentation: http://docs.appfigures.com/products#searching_for_products.


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