get_menu: Get the menu items.

Description Usage Arguments Value Examples

View source: R/get_menu.R

Description

This functions gets the menu items from different restaurant chains.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
get_menu(
  key = NULL,
  query = NULL,
  minCalories = NULL,
  maxCalories = NULL,
  minCarbs = NULL,
  maxCarbs = NULL,
  minProtein = NULL,
  maxProtein = NULL,
  minFat = NULL,
  maxFat = NULL,
  number = 10
)

Arguments

key

API key

query

keywords in the menu items.

minCalories

The minimum amount of calories the menu item must have.

maxCalories

The maximum amount of calories the menu item can have.

minCarbs

The minimum amount of carbohydrates in grams the menu item must have.

maxCarbs

The maximum amount of carbohydrates in grams the menu item can have.

minProtein

The minimum amount of protein in grams the menu item must have.

maxProtein

The maximum amount of protein in grams the menu item can have.

minFat

The minimum amount of fat in grams the menu item must have.

maxFat

The maximum amount of fat in grams the menu item can have.

number

The number of expected results (between 1 and 10).

Value

The menu items requested by users.

Examples

1
get_menu(key = Sys.getenv("SPOON_KEY"),query = "burger" ,number = 10)

cynthiawang315/SpoonacularAPI documentation built on Feb. 18, 2020, 12:28 a.m.