spoonacular

package module
v0.0.0-...-5b382a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 21 Imported by: 0

README

Go API client for spoonacular

The spoonacular Nutrition, Recipe, and Food API allows you to access over 380,000 recipes, thousands of ingredients, 800,000 food products, and 100,000 menu items. Our food ontology and semantic recipe search engine makes it possible to search for recipes using natural language queries, such as "gluten free brownies without sugar" or "low fat vegan cupcakes." You can automatically calculate the nutritional information for any recipe, analyze recipe costs, visualize ingredient lists, find recipes for what's in your fridge, find recipes based on special diets, nutritional requirements, or favorite ingredients, classify recipes into types and cuisines, convert ingredient amounts, or even compute an entire meal plan. With our powerful API, you can create many kinds of food and especially nutrition apps. Special diets/dietary requirements currently available include: vegan, vegetarian, pescetarian, gluten free, grain free, dairy free, high protein, whole 30, low sodium, low carb, Paleo, ketogenic, FODMAP, and Primal.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://spoonacular.com/contact

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./spoonacular"

Documentation for API Endpoints

All URIs are relative to https://api.spoonacular.com

Class Method HTTP request Description
IngredientsApi AutocompleteIngredientSearch Get /food/ingredients/autocomplete Autocomplete Ingredient Search
IngredientsApi ComputeIngredientAmount Get /food/ingredients/{id}/amount Compute Ingredient Amount
IngredientsApi GetIngredientInformation Get /food/ingredients/{id}/information Get Ingredient Information
IngredientsApi GetIngredientSubstitutes Get /food/ingredients/substitutes Get Ingredient Substitutes
IngredientsApi GetIngredientSubstitutesByID Get /food/ingredients/{id}/substitutes Get Ingredient Substitutes by ID
IngredientsApi IngredientSearch Get /food/ingredients/search Ingredient Search
IngredientsApi IngredientsByIDImage Get /recipes/{id}/ingredientWidget.png Ingredients by ID Image
IngredientsApi MapIngredientsToGroceryProducts Post /food/ingredients/map Map Ingredients to Grocery Products
IngredientsApi VisualizeIngredients Post /recipes/visualizeIngredients Ingredients Widget
MealPlanningApi AddMealPlanTemplate Post /mealplanner/{username}/templates Add Meal Plan Template
MealPlanningApi AddToMealPlan Post /mealplanner/{username}/items Add to Meal Plan
MealPlanningApi AddToShoppingList Post /mealplanner/{username}/shopping-list/items Add to Shopping List
MealPlanningApi ClearMealPlanDay Delete /mealplanner/{username}/day/{date} Clear Meal Plan Day
MealPlanningApi ConnectUser Post /users/connect Connect User
MealPlanningApi DeleteFromMealPlan Delete /mealplanner/{username}/items/{id} Delete from Meal Plan
MealPlanningApi DeleteFromShoppingList Delete /mealplanner/{username}/shopping-list/items/{id} Delete from Shopping List
MealPlanningApi DeleteMealPlanTemplate Delete /mealplanner/{username}/templates/{id} Delete Meal Plan Template
MealPlanningApi GenerateMealPlan Get /mealplanner/generate Generate Meal Plan
MealPlanningApi GenerateShoppingList Post /mealplanner/{username}/shopping-list/{start-date}/{end-date} Generate Shopping List
MealPlanningApi GetMealPlanTemplate Get /mealplanner/{username}/templates/{id} Get Meal Plan Template
MealPlanningApi GetMealPlanTemplates Get /mealplanner/{username}/templates Get Meal Plan Templates
MealPlanningApi GetMealPlanWeek Get /mealplanner/{username}/week/{start-date} Get Meal Plan Week
MealPlanningApi GetShoppingList Get /mealplanner/{username}/shopping-list Get Shopping List
MenuItemsApi AutocompleteMenuItemSearch Get /food/menuItems/suggest Autocomplete Menu Item Search
MenuItemsApi GetMenuItemInformation Get /food/menuItems/{id} Get Menu Item Information
MenuItemsApi MenuItemNutritionByIDImage Get /food/menuItems/{id}/nutritionWidget.png Menu Item Nutrition by ID Image
MenuItemsApi MenuItemNutritionLabelImage Get /food/menuItems/{id}/nutritionLabel.png Menu Item Nutrition Label Image
MenuItemsApi MenuItemNutritionLabelWidget Get /food/menuItems/{id}/nutritionLabel Menu Item Nutrition Label Widget
MenuItemsApi SearchMenuItems Get /food/menuItems/search Search Menu Items
MenuItemsApi VisualizeMenuItemNutritionByID Get /food/menuItems/{id}/nutritionWidget Menu Item Nutrition by ID Widget
MiscApi DetectFoodInText Post /food/detect Detect Food in Text
MiscApi GetARandomFoodJoke Get /food/jokes/random Random Food Joke
MiscApi GetConversationSuggests Get /food/converse/suggest Conversation Suggests
MiscApi GetRandomFoodTrivia Get /food/trivia/random Random Food Trivia
MiscApi ImageAnalysisByURL Get /food/images/analyze Image Analysis by URL
MiscApi ImageClassificationByURL Get /food/images/classify Image Classification by URL
MiscApi SearchAllFood Get /food/search Search All Food
MiscApi SearchCustomFoods Get /food/customFoods/search Search Custom Foods
MiscApi SearchFoodVideos Get /food/videos/search Search Food Videos
MiscApi SearchSiteContent Get /food/site/search Search Site Content
MiscApi TalkToChatbot Get /food/converse Talk to Chatbot
ProductsApi AutocompleteProductSearch Get /food/products/suggest Autocomplete Product Search
ProductsApi ClassifyGroceryProduct Post /food/products/classify Classify Grocery Product
ProductsApi ClassifyGroceryProductBulk Post /food/products/classifyBatch Classify Grocery Product Bulk
ProductsApi GetComparableProducts Get /food/products/upc/{upc}/comparable Get Comparable Products
ProductsApi GetProductInformation Get /food/products/{id} Get Product Information
ProductsApi ProductNutritionByIDImage Get /food/products/{id}/nutritionWidget.png Product Nutrition by ID Image
ProductsApi ProductNutritionLabelImage Get /food/products/{id}/nutritionLabel.png Product Nutrition Label Image
ProductsApi ProductNutritionLabelWidget Get /food/products/{id}/nutritionLabel Product Nutrition Label Widget
ProductsApi SearchGroceryProducts Get /food/products/search Search Grocery Products
ProductsApi SearchGroceryProductsByUPC Get /food/products/upc/{upc} Search Grocery Products by UPC
ProductsApi VisualizeProductNutritionByID Get /food/products/{id}/nutritionWidget Product Nutrition by ID Widget
RecipesApi AnalyzeARecipeSearchQuery Get /recipes/queries/analyze Analyze a Recipe Search Query
RecipesApi AnalyzeRecipeInstructions Post /recipes/analyzeInstructions Analyze Recipe Instructions
RecipesApi AutocompleteRecipeSearch Get /recipes/autocomplete Autocomplete Recipe Search
RecipesApi ClassifyCuisine Post /recipes/cuisine Classify Cuisine
RecipesApi ComputeGlycemicLoad Post /food/ingredients/glycemicLoad Compute Glycemic Load
RecipesApi ConvertAmounts Get /recipes/convert Convert Amounts
RecipesApi CreateRecipeCard Post /recipes/visualizeRecipe Create Recipe Card
RecipesApi EquipmentByIDImage Get /recipes/{id}/equipmentWidget.png Equipment by ID Image
RecipesApi ExtractRecipeFromWebsite Get /recipes/extract Extract Recipe from Website
RecipesApi GetAnalyzedRecipeInstructions Get /recipes/{id}/analyzedInstructions Get Analyzed Recipe Instructions
RecipesApi GetRandomRecipes Get /recipes/random Get Random Recipes
RecipesApi GetRecipeEquipmentByID Get /recipes/{id}/equipmentWidget.json Equipment by ID
RecipesApi GetRecipeInformation Get /recipes/{id}/information Get Recipe Information
RecipesApi GetRecipeInformationBulk Get /recipes/informationBulk Get Recipe Information Bulk
RecipesApi GetRecipeIngredientsByID Get /recipes/{id}/ingredientWidget.json Ingredients by ID
RecipesApi GetRecipeNutritionWidgetByID Get /recipes/{id}/nutritionWidget.json Nutrition by ID
RecipesApi GetRecipePriceBreakdownByID Get /recipes/{id}/priceBreakdownWidget.json Price Breakdown by ID
RecipesApi GetRecipeTasteByID Get /recipes/{id}/tasteWidget.json Taste by ID
RecipesApi GetSimilarRecipes Get /recipes/{id}/similar Get Similar Recipes
RecipesApi GuessNutritionByDishName Get /recipes/guessNutrition Guess Nutrition by Dish Name
RecipesApi IngredientsByIDImage Get /recipes/{id}/ingredientWidget.png Ingredients by ID Image
RecipesApi ParseIngredients Post /recipes/parseIngredients Parse Ingredients
RecipesApi PriceBreakdownByIDImage Get /recipes/{id}/priceBreakdownWidget.png Price Breakdown by ID Image
RecipesApi QuickAnswer Get /recipes/quickAnswer Quick Answer
RecipesApi RecipeNutritionByIDImage Get /recipes/{id}/nutritionWidget.png Recipe Nutrition by ID Image
RecipesApi RecipeNutritionLabelImage Get /recipes/{id}/nutritionLabel.png Recipe Nutrition Label Image
RecipesApi RecipeNutritionLabelWidget Get /recipes/{id}/nutritionLabel Recipe Nutrition Label Widget
RecipesApi RecipeTasteByIDImage Get /recipes/{id}/tasteWidget.png Recipe Taste by ID Image
RecipesApi SearchRecipes Get /recipes/complexSearch Search Recipes
RecipesApi SearchRecipesByIngredients Get /recipes/findByIngredients Search Recipes by Ingredients
RecipesApi SearchRecipesByNutrients Get /recipes/findByNutrients Search Recipes by Nutrients
RecipesApi SummarizeRecipe Get /recipes/{id}/summary Summarize Recipe
RecipesApi VisualizeEquipment Post /recipes/visualizeEquipment Equipment Widget
RecipesApi VisualizePriceBreakdown Post /recipes/visualizePriceEstimator Price Breakdown Widget
RecipesApi VisualizeRecipeEquipmentByID Get /recipes/{id}/equipmentWidget Equipment by ID Widget
RecipesApi VisualizeRecipeIngredientsByID Get /recipes/{id}/ingredientWidget Ingredients by ID Widget
RecipesApi VisualizeRecipeNutrition Post /recipes/visualizeNutrition Recipe Nutrition Widget
RecipesApi VisualizeRecipeNutritionByID Get /recipes/{id}/nutritionWidget Recipe Nutrition by ID Widget
RecipesApi VisualizeRecipePriceBreakdownByID Get /recipes/{id}/priceBreakdownWidget Price Breakdown by ID Widget
RecipesApi VisualizeRecipeTaste Post /recipes/visualizeTaste Recipe Taste Widget
RecipesApi VisualizeRecipeTasteByID Get /recipes/{id}/tasteWidget Recipe Taste by ID Widget
WineApi GetDishPairingForWine Get /food/wine/dishes Dish Pairing for Wine
WineApi GetWineDescription Get /food/wine/description Wine Description
WineApi GetWinePairing Get /food/wine/pairing Wine Pairing
WineApi GetWineRecommendation Get /food/wine/recommendation Wine Recommendation

Documentation For Models

Documentation For Authorization

apiKeyScheme

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
    Key: "APIKEY",
    Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

mail@spoonacular.com

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type APIClient

type APIClient struct {
	IngredientsApi *IngredientsApiService

	MealPlanningApi *MealPlanningApiService

	MenuItemsApi *MenuItemsApiService

	MiscApi *MiscApiService

	ProductsApi *ProductsApiService

	RecipesApi *RecipesApiService

	WineApi *WineApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the spoonacular API API v1.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type AnalyzeRecipeInstructionsOpts

type AnalyzeRecipeInstructionsOpts struct {
	ContentType optional.String
}

type AutocompleteIngredientSearchOpts

type AutocompleteIngredientSearchOpts struct {
	Query           optional.String
	Number          optional.Int32
	MetaInformation optional.Bool
	Intolerances    optional.String
}

type AutocompleteMenuItemSearchOpts

type AutocompleteMenuItemSearchOpts struct {
	Number optional.Float32
}

type AutocompleteProductSearchOpts

type AutocompleteProductSearchOpts struct {
	Number optional.Int32
}

type AutocompleteRecipeSearchOpts

type AutocompleteRecipeSearchOpts struct {
	Query  optional.String
	Number optional.Int32
}

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type ClassifyCuisineOpts

type ClassifyCuisineOpts struct {
	ContentType optional.String
}

type ClassifyGroceryProductBulkOpts

type ClassifyGroceryProductBulkOpts struct {
	Locale optional.String
}

type ClassifyGroceryProductOpts

type ClassifyGroceryProductOpts struct {
	Locale optional.String
}

type ComputeGlycemicLoadOpts

type ComputeGlycemicLoadOpts struct {
	Language optional.String
}

type ComputeIngredientAmountOpts

type ComputeIngredientAmountOpts struct {
	Unit optional.String
}

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
}

func NewConfiguration

func NewConfiguration() *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

type CreateRecipeCardOpts

type CreateRecipeCardOpts struct {
	ContentType optional.String
}

type DetectFoodInTextOpts

type DetectFoodInTextOpts struct {
	ContentType optional.String
}

type ExtractRecipeFromWebsiteOpts

type ExtractRecipeFromWebsiteOpts struct {
	ForceExtraction  optional.Bool
	Analyze          optional.Bool
	IncludeNutrition optional.Bool
	IncludeTaste     optional.Bool
}

type FoodIngredientsMapProducts

type FoodIngredientsMapProducts struct {
	Id    int32  `json:"id"`
	Title string `json:"title"`
	Upc   string `json:"upc"`
}

type GenerateMealPlanOpts

type GenerateMealPlanOpts struct {
	TimeFrame      optional.String
	TargetCalories optional.Float32
	Diet           optional.String
	Exclude        optional.String
}

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GetAnalyzedRecipeInstructionsOpts

type GetAnalyzedRecipeInstructionsOpts struct {
	StepBreakdown optional.Bool
}

type GetConversationSuggestsOpts

type GetConversationSuggestsOpts struct {
	Number optional.Float32
}

type GetIngredientInformationOpts

type GetIngredientInformationOpts struct {
	Amount optional.Float32
	Unit   optional.String
}

type GetRandomRecipesOpts

type GetRandomRecipesOpts struct {
	LimitLicense optional.Bool
	Tags         optional.String
	Number       optional.Int32
}

type GetRecipeInformationBulkOpts

type GetRecipeInformationBulkOpts struct {
	IncludeNutrition optional.Bool
}

type GetRecipeInformationOpts

type GetRecipeInformationOpts struct {
	IncludeNutrition optional.Bool
}

type GetRecipeTasteByIDOpts

type GetRecipeTasteByIDOpts struct {
	Normalize optional.Bool
}

type GetSimilarRecipesOpts

type GetSimilarRecipesOpts struct {
	Number       optional.Int32
	LimitLicense optional.Bool
}

type GetWinePairingOpts

type GetWinePairingOpts struct {
	MaxPrice optional.Float32
}

type GetWineRecommendationOpts

type GetWineRecommendationOpts struct {
	MaxPrice  optional.Float32
	MinRating optional.Float32
	Number    optional.Float32
}

type IngredientSearchOpts

type IngredientSearchOpts struct {
	Query             optional.String
	AddChildren       optional.Bool
	MinProteinPercent optional.Float32
	MaxProteinPercent optional.Float32
	MinFatPercent     optional.Float32
	MaxFatPercent     optional.Float32
	MinCarbsPercent   optional.Float32
	MaxCarbsPercent   optional.Float32
	MetaInformation   optional.Bool
	Intolerances      optional.String
	Sort              optional.String
	SortDirection     optional.String
	Offset            optional.Int32
	Number            optional.Int32
}

type IngredientsApiService

type IngredientsApiService service

func (*IngredientsApiService) AutocompleteIngredientSearch

func (a *IngredientsApiService) AutocompleteIngredientSearch(ctx context.Context, localVarOptionals *AutocompleteIngredientSearchOpts) ([]InlineResponse20024, *http.Response, error)

func (*IngredientsApiService) ComputeIngredientAmount

func (a *IngredientsApiService) ComputeIngredientAmount(ctx context.Context, id float32, nutrient string, target float32, localVarOptionals *ComputeIngredientAmountOpts) (RecipesParseIngredientsNutritionWeightPerServing, *http.Response, error)

func (*IngredientsApiService) GetIngredientInformation

func (a *IngredientsApiService) GetIngredientInformation(ctx context.Context, id int32, localVarOptionals *GetIngredientInformationOpts) (InlineResponse20022, *http.Response, error)

func (*IngredientsApiService) GetIngredientSubstitutes

func (a *IngredientsApiService) GetIngredientSubstitutes(ctx context.Context, ingredientName string) (InlineResponse20026, *http.Response, error)

IngredientsApiService Get Ingredient Substitutes Search for substitutes for a given ingredient.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param ingredientName The name of the ingredient you want to replace.

@return InlineResponse20026

func (*IngredientsApiService) GetIngredientSubstitutesByID

func (a *IngredientsApiService) GetIngredientSubstitutesByID(ctx context.Context, id int32) (InlineResponse20026, *http.Response, error)

IngredientsApiService Get Ingredient Substitutes by ID Search for substitutes for a given ingredient.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The item's id.

@return InlineResponse20026

func (*IngredientsApiService) IngredientSearch

func (a *IngredientsApiService) IngredientSearch(ctx context.Context, localVarOptionals *IngredientSearchOpts) (InlineResponse20025, *http.Response, error)

func (*IngredientsApiService) IngredientsByIDImage

func (a *IngredientsApiService) IngredientsByIDImage(ctx context.Context, id float32, localVarOptionals *IngredientsByIDImageOpts) (map[string]interface{}, *http.Response, error)

func (*IngredientsApiService) MapIngredientsToGroceryProducts

func (a *IngredientsApiService) MapIngredientsToGroceryProducts(ctx context.Context, inlineObject2 InlineObject2) ([]InlineResponse20034, *http.Response, error)

IngredientsApiService Map Ingredients to Grocery Products Map a set of ingredients to products you can buy in the grocery store.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param inlineObject2

@return []InlineResponse20034

func (*IngredientsApiService) VisualizeIngredients

func (a *IngredientsApiService) VisualizeIngredients(ctx context.Context, localVarOptionals *VisualizeIngredientsOpts) (string, *http.Response, error)

type IngredientsByIDImageOpts

type IngredientsByIDImageOpts struct {
	Measure optional.String
}

type InlineObject

type InlineObject struct {
	Title   string `json:"title"`
	Upc     string `json:"upc"`
	PluCode string `json:"plu_code"`
}

type InlineObject1

type InlineObject1 struct {
	Title   string `json:"title"`
	Upc     string `json:"upc"`
	PluCode string `json:"plu_code"`
}

type InlineObject10

type InlineObject10 struct {
	// The username.
	Username string `json:"username"`
	// The shopping list item id.
	Id float32 `json:"id"`
	// The private hash for the username.
	Hash string `json:"hash"`
}

type InlineObject2

type InlineObject2 struct {
	Ingredients []string `json:"ingredients"`
	Servings    float32  `json:"servings"`
}

type InlineObject3

type InlineObject3 struct {
	// The username.
	Username string `json:"username"`
	// The date in the format yyyy-mm-dd.
	Date string `json:"date"`
	// The private hash for the username.
	Hash string `json:"hash"`
}

type InlineObject4

type InlineObject4 struct {
	// The username.
	Username string `json:"username"`
	// The private hash for the username.
	Hash string `json:"hash"`
}

type InlineObject5

type InlineObject5 struct {
	// The username.
	Username string `json:"username"`
	// The shopping list item id.
	Id float32 `json:"id"`
	// The private hash for the username.
	Hash string `json:"hash"`
}

type InlineObject6

type InlineObject6 struct {
	// The username.
	Username string `json:"username"`
	// The private hash for the username.
	Hash string `json:"hash"`
}

type InlineObject7

type InlineObject7 struct {
	// The username.
	Username string `json:"username"`
	// The shopping list item id.
	Id float32 `json:"id"`
	// The private hash for the username.
	Hash string `json:"hash"`
}

type InlineObject8

type InlineObject8 struct {
	// The username.
	Username string `json:"username"`
	// The start date in the format yyyy-mm-dd.
	StartDate string `json:"start-date"`
	// The end date in the format yyyy-mm-dd.
	EndDate string `json:"end-date"`
	// The private hash for the username.
	Hash string `json:"hash"`
}

type InlineObject9

type InlineObject9 struct {
	// The username.
	Username string `json:"username"`
	// The private hash for the username.
	Hash string `json:"hash"`
}

type InlineResponse200

type InlineResponse200 struct {
	Offset       int32                      `json:"offset"`
	Number       int32                      `json:"number"`
	Results      []InlineResponse200Results `json:"results"`
	TotalResults int32                      `json:"totalResults"`
}

type InlineResponse2001

type InlineResponse2001 struct {
	Id                    int32                                       `json:"id"`
	Image                 string                                      `json:"image"`
	ImageType             string                                      `json:"imageType"`
	Likes                 int32                                       `json:"likes"`
	MissedIngredientCount int32                                       `json:"missedIngredientCount"`
	MissedIngredients     []RecipesFindByIngredientsMissedIngredients `json:"missedIngredients"`
	Title                 string                                      `json:"title"`
	UnusedIngredients     []map[string]interface{}                    `json:"unusedIngredients"`
	UsedIngredientCount   float32                                     `json:"usedIngredientCount"`
	UsedIngredients       []RecipesFindByIngredientsMissedIngredients `json:"usedIngredients"`
	// contains filtered or unexported fields
}

type InlineResponse20010

type InlineResponse20010 struct {
	Ingredients         []InlineResponse20010Ingredients `json:"ingredients"`
	TotalCost           float32                          `json:"totalCost"`
	TotalCostPerServing float32                          `json:"totalCostPerServing"`
}

type InlineResponse20010Amount

type InlineResponse20010Amount struct {
	Metric InlineResponse20010AmountMetric `json:"metric"`
	Us     InlineResponse20010AmountMetric `json:"us"`
}

type InlineResponse20010AmountMetric

type InlineResponse20010AmountMetric struct {
	Unit  string  `json:"unit"`
	Value float32 `json:"value"`
}

type InlineResponse20010Ingredients

type InlineResponse20010Ingredients struct {
	Amount InlineResponse20010Amount `json:"amount,omitempty"`
	Image  string                    `json:"image"`
	Name   string                    `json:"name"`
	Price  float32                   `json:"price"`
}

type InlineResponse20011

type InlineResponse20011 struct {
	Ingredients []InlineResponse20011Ingredients `json:"ingredients"`
}

type InlineResponse20011Ingredients

type InlineResponse20011Ingredients struct {
	Amount InlineResponse20010Amount `json:"amount,omitempty"`
	Image  string                    `json:"image"`
	Name   string                    `json:"name"`
}

type InlineResponse20012

type InlineResponse20012 struct {
	Calories string                   `json:"calories"`
	Carbs    string                   `json:"carbs"`
	Fat      string                   `json:"fat"`
	Protein  string                   `json:"protein"`
	Bad      []map[string]interface{} `json:"bad"`
	Good     []map[string]interface{} `json:"good"`
}

type InlineResponse20013

type InlineResponse20013 struct {
	ParsedInstructions []InlineResponse20013ParsedInstructions `json:"parsedInstructions"`
	Ingredients        []InlineResponse20013Ingredients1       `json:"ingredients"`
	Equipment          []InlineResponse20013Ingredients1       `json:"equipment"`
}

type InlineResponse20013Ingredients

type InlineResponse20013Ingredients struct {
	Id            int32  `json:"id"`
	Name          string `json:"name"`
	LocalizedName string `json:"localizedName"`
	Image         string `json:"image"`
}

type InlineResponse20013Ingredients1

type InlineResponse20013Ingredients1 struct {
	Id   int32  `json:"id"`
	Name string `json:"name"`
}

type InlineResponse20013ParsedInstructions

type InlineResponse20013ParsedInstructions struct {
	Name  string                     `json:"name"`
	Steps []InlineResponse20013Steps `json:"steps,omitempty"`
}

type InlineResponse20013Steps

type InlineResponse20013Steps struct {
	Number      float32                          `json:"number"`
	Step        string                           `json:"step"`
	Ingredients []InlineResponse20013Ingredients `json:"ingredients,omitempty"`
	Equipment   []InlineResponse20013Ingredients `json:"equipment,omitempty"`
}

type InlineResponse20014

type InlineResponse20014 struct {
	Id      int32  `json:"id"`
	Summary string `json:"summary"`
	Title   string `json:"title"`
}

type InlineResponse20015

type InlineResponse20015 struct {
	Url string `json:"url"`
}

type InlineResponse20016

type InlineResponse20016 struct {
	ParsedInstructions []map[string]interface{} `json:"parsedInstructions"`
	Ingredients        []map[string]interface{} `json:"ingredients"`
	Equipment          []map[string]interface{} `json:"equipment"`
}

type InlineResponse20017

type InlineResponse20017 struct {
	Cuisine    string   `json:"cuisine"`
	Cuisines   []string `json:"cuisines"`
	Confidence float32  `json:"confidence"`
}

type InlineResponse20018

type InlineResponse20018 struct {
	Dishes      []InlineResponse20018Dishes      `json:"dishes"`
	Ingredients []InlineResponse20018Ingredients `json:"ingredients"`
	Cuisines    []string                         `json:"cuisines"`
	Modifiers   []string                         `json:"modifiers"`
}

type InlineResponse20018Dishes

type InlineResponse20018Dishes struct {
	Image string `json:"image"`
	Name  string `json:"name"`
}

type InlineResponse20018Ingredients

type InlineResponse20018Ingredients struct {
	Image   string `json:"image"`
	Include bool   `json:"include"`
	Name    string `json:"name"`
}

type InlineResponse20019

type InlineResponse20019 struct {
	SourceAmount float32 `json:"sourceAmount"`
	SourceUnit   string  `json:"sourceUnit"`
	TargetAmount float32 `json:"targetAmount"`
	TargetUnit   string  `json:"targetUnit"`
	Answer       string  `json:"answer"`
}

type InlineResponse2002

type InlineResponse2002 struct {
	Calories  float32 `json:"calories"`
	Carbs     string  `json:"carbs"`
	Fat       string  `json:"fat"`
	Id        int32   `json:"id"`
	Image     string  `json:"image"`
	ImageType string  `json:"imageType"`
	Protein   string  `json:"protein"`
	Title     string  `json:"title"`
}

type InlineResponse20020

type InlineResponse20020 struct {
	Id            int32                                `json:"id"`
	Original      string                               `json:"original"`
	OriginalName  string                               `json:"originalName"`
	Name          string                               `json:"name"`
	NameClean     string                               `json:"nameClean"`
	Amount        float32                              `json:"amount"`
	Unit          string                               `json:"unit"`
	UnitShort     string                               `json:"unitShort"`
	UnitLong      string                               `json:"unitLong"`
	PossibleUnits []string                             `json:"possibleUnits"`
	EstimatedCost RecipesParseIngredientsEstimatedCost `json:"estimatedCost"`
	Consistency   string                               `json:"consistency"`
	Aisle         string                               `json:"aisle"`
	Image         string                               `json:"image"`
	Meta          []string                             `json:"meta"`
	Nutrition     RecipesParseIngredientsNutrition     `json:"nutrition"`
}

type InlineResponse20021

type InlineResponse20021 struct {
	Calories    InlineResponse20021Calories `json:"calories"`
	Carbs       InlineResponse20021Calories `json:"carbs"`
	Fat         InlineResponse20021Calories `json:"fat"`
	Protein     InlineResponse20021Calories `json:"protein"`
	RecipesUsed int32                       `json:"recipesUsed"`
}

type InlineResponse20021Calories

type InlineResponse20021Calories struct {
	ConfidenceRange95Percent InlineResponse20021CaloriesConfidenceRange95Percent `json:"confidenceRange95Percent"`
	StandardDeviation        float32                                             `json:"standardDeviation"`
	Unit                     string                                              `json:"unit"`
	Value                    float32                                             `json:"value"`
}

type InlineResponse20021CaloriesConfidenceRange95Percent

type InlineResponse20021CaloriesConfidenceRange95Percent struct {
	Max float32 `json:"max"`
	Min float32 `json:"min"`
}

type InlineResponse20022

type InlineResponse20022 struct {
	Id                int32                                `json:"id"`
	Original          string                               `json:"original"`
	OriginalName      string                               `json:"originalName"`
	Name              string                               `json:"name"`
	NameClean         string                               `json:"nameClean"`
	Amount            float32                              `json:"amount"`
	Unit              string                               `json:"unit"`
	UnitShort         string                               `json:"unitShort"`
	UnitLong          string                               `json:"unitLong"`
	PossibleUnits     []string                             `json:"possibleUnits"`
	EstimatedCost     RecipesParseIngredientsEstimatedCost `json:"estimatedCost"`
	Consistency       string                               `json:"consistency"`
	ShoppingListUnits []string                             `json:"shoppingListUnits"`
	Aisle             string                               `json:"aisle"`
	Image             string                               `json:"image"`
	Meta              []map[string]interface{}             `json:"meta"`
	Nutrition         InlineResponse20022Nutrition         `json:"nutrition"`
	CategoryPath      []string                             `json:"categoryPath"`
}

type InlineResponse20022Nutrition

type InlineResponse20022Nutrition struct {
	Nutrients        []RecipesParseIngredientsNutritionNutrients      `json:"nutrients"`
	Properties       []RecipesParseIngredientsNutritionProperties     `json:"properties"`
	CaloricBreakdown RecipesParseIngredientsNutritionCaloricBreakdown `json:"caloricBreakdown"`
	WeightPerServing RecipesParseIngredientsNutritionWeightPerServing `json:"weightPerServing"`
}

type InlineResponse20023

type InlineResponse20023 struct {
	TotalGlycemicLoad float32                          `json:"totalGlycemicLoad"`
	Ingredients       []InlineResponse20023Ingredients `json:"ingredients"`
}

type InlineResponse20023Ingredients

type InlineResponse20023Ingredients struct {
	Id            int32   `json:"id"`
	Original      string  `json:"original"`
	GlycemicIndex float32 `json:"glycemicIndex"`
	GlycemicLoad  float32 `json:"glycemicLoad"`
}

type InlineResponse20024

type InlineResponse20024 struct {
	Name          string   `json:"name"`
	Image         string   `json:"image"`
	Id            int32    `json:"id"`
	Aisle         string   `json:"aisle"`
	PossibleUnits []string `json:"possibleUnits"`
}

type InlineResponse20025

type InlineResponse20025 struct {
	Results      []InlineResponse20025Results `json:"results"`
	Offset       int32                        `json:"offset"`
	Number       int32                        `json:"number"`
	TotalResults int32                        `json:"totalResults"`
}

type InlineResponse20025Results

type InlineResponse20025Results struct {
	Id    int32  `json:"id"`
	Name  string `json:"name"`
	Image string `json:"image"`
}

type InlineResponse20026

type InlineResponse20026 struct {
	Ingredient  string   `json:"ingredient"`
	Substitutes []string `json:"substitutes"`
	Message     string   `json:"message"`
}

type InlineResponse20027

type InlineResponse20027 struct {
	Products      []InlineResponse2007 `json:"products"`
	TotalProducts int32                `json:"totalProducts"`
	Type          string               `json:"type"`
	Offset        int32                `json:"offset"`
	Number        int32                `json:"number"`
}

type InlineResponse20028

type InlineResponse20028 struct {
	Id               int32                            `json:"id"`
	Title            string                           `json:"title"`
	Badges           []string                         `json:"badges"`
	ImportantBadges  []string                         `json:"importantBadges"`
	Breadcrumbs      []string                         `json:"breadcrumbs"`
	GeneratedText    string                           `json:"generatedText"`
	ImageType        string                           `json:"imageType"`
	IngredientCount  int32                            `json:"ingredientCount,omitempty"`
	IngredientList   string                           `json:"ingredientList"`
	Ingredients      []InlineResponse20028Ingredients `json:"ingredients"`
	Likes            float32                          `json:"likes"`
	Nutrition        InlineResponse20028Nutrition     `json:"nutrition"`
	Price            float32                          `json:"price"`
	Servings         InlineResponse20028Servings      `json:"servings"`
	SpoonacularScore float32                          `json:"spoonacularScore"`
}

type InlineResponse20028Ingredients

type InlineResponse20028Ingredients struct {
	Description map[string]interface{} `json:"description,omitempty"`
	Name        string                 `json:"name"`
	SafetyLevel map[string]interface{} `json:"safety_level,omitempty"`
}

type InlineResponse20028Nutrition

type InlineResponse20028Nutrition struct {
	Nutrients        []RecipesParseIngredientsNutritionNutrients      `json:"nutrients"`
	CaloricBreakdown RecipesParseIngredientsNutritionCaloricBreakdown `json:"caloricBreakdown"`
}

type InlineResponse20028Servings

type InlineResponse20028Servings struct {
	Number float32 `json:"number"`
	Size   float32 `json:"size"`
	Unit   string  `json:"unit"`
}

type InlineResponse20029

type InlineResponse20029 struct {
	CustomFoods []InlineResponse20029CustomFoods `json:"customFoods"`
	Type        string                           `json:"type"`
	Offset      int32                            `json:"offset"`
	Number      int32                            `json:"number"`
}

type InlineResponse20029CustomFoods

type InlineResponse20029CustomFoods struct {
	Id       int32   `json:"id"`
	Title    string  `json:"title"`
	Servings float32 `json:"servings"`
	ImageUrl string  `json:"imageUrl"`
	Price    float32 `json:"price"`
}

type InlineResponse2003

type InlineResponse2003 struct {
	Id                       int32                                   `json:"id"`
	Title                    string                                  `json:"title"`
	Image                    string                                  `json:"image"`
	ImageType                string                                  `json:"imageType"`
	Servings                 float32                                 `json:"servings"`
	ReadyInMinutes           int32                                   `json:"readyInMinutes"`
	License                  string                                  `json:"license"`
	SourceName               string                                  `json:"sourceName"`
	SourceUrl                string                                  `json:"sourceUrl"`
	SpoonacularSourceUrl     string                                  `json:"spoonacularSourceUrl"`
	AggregateLikes           int32                                   `json:"aggregateLikes"`
	HealthScore              float32                                 `json:"healthScore"`
	SpoonacularScore         float32                                 `json:"spoonacularScore"`
	PricePerServing          float32                                 `json:"pricePerServing"`
	AnalyzedInstructions     []map[string]interface{}                `json:"analyzedInstructions"`
	Cheap                    bool                                    `json:"cheap"`
	CreditsText              string                                  `json:"creditsText"`
	Cuisines                 []string                                `json:"cuisines"`
	DairyFree                bool                                    `json:"dairyFree"`
	Diets                    []string                                `json:"diets"`
	Gaps                     string                                  `json:"gaps"`
	GlutenFree               bool                                    `json:"glutenFree"`
	Instructions             string                                  `json:"instructions"`
	Ketogenic                bool                                    `json:"ketogenic"`
	LowFodmap                bool                                    `json:"lowFodmap"`
	Occasions                []string                                `json:"occasions"`
	Sustainable              bool                                    `json:"sustainable"`
	Vegan                    bool                                    `json:"vegan"`
	Vegetarian               bool                                    `json:"vegetarian"`
	VeryHealthy              bool                                    `json:"veryHealthy"`
	VeryPopular              bool                                    `json:"veryPopular"`
	Whole30                  bool                                    `json:"whole30"`
	WeightWatcherSmartPoints float32                                 `json:"weightWatcherSmartPoints"`
	DishTypes                []string                                `json:"dishTypes"`
	ExtendedIngredients      []InlineResponse2003ExtendedIngredients `json:"extendedIngredients"`
	Summary                  string                                  `json:"summary"`
	WinePairing              InlineResponse2003WinePairing           `json:"winePairing"`
}

type InlineResponse20030

type InlineResponse20030 struct {
	Id               int32                            `json:"id"`
	Title            string                           `json:"title"`
	Breadcrumbs      []string                         `json:"breadcrumbs"`
	ImageType        string                           `json:"imageType"`
	Badges           []string                         `json:"badges"`
	ImportantBadges  []string                         `json:"importantBadges"`
	IngredientCount  int32                            `json:"ingredientCount"`
	GeneratedText    map[string]interface{}           `json:"generatedText,omitempty"`
	IngredientList   string                           `json:"ingredientList"`
	Ingredients      []InlineResponse20030Ingredients `json:"ingredients"`
	Likes            float32                          `json:"likes"`
	Aisle            string                           `json:"aisle"`
	Nutrition        InlineResponse20028Nutrition     `json:"nutrition"`
	Price            float32                          `json:"price"`
	Servings         InlineResponse20028Servings      `json:"servings"`
	SpoonacularScore float32                          `json:"spoonacularScore"`
}

type InlineResponse20030Ingredients

type InlineResponse20030Ingredients struct {
	Description map[string]interface{} `json:"description,omitempty"`
	Name        string                 `json:"name"`
	SafetyLevel map[string]interface{} `json:"safety_level,omitempty"`
}

type InlineResponse20031

type InlineResponse20031 struct {
	ComparableProducts InlineResponse20031ComparableProducts `json:"comparableProducts"`
}

type InlineResponse20031ComparableProducts

type InlineResponse20031ComparableProducts struct {
	Calories         []map[string]interface{}                       `json:"calories"`
	Likes            []map[string]interface{}                       `json:"likes"`
	Price            []map[string]interface{}                       `json:"price"`
	Protein          []InlineResponse20031ComparableProductsProtein `json:"protein"`
	SpoonacularScore []InlineResponse20031ComparableProductsProtein `json:"spoonacularScore"`
	Sugar            []map[string]interface{}                       `json:"sugar"`
}

type InlineResponse20031ComparableProductsProtein

type InlineResponse20031ComparableProductsProtein struct {
	Difference float32 `json:"difference"`
	Id         int32   `json:"id"`
	Image      string  `json:"image"`
	Title      string  `json:"title"`
}

type InlineResponse20032

type InlineResponse20032 struct {
	Results []InlineResponse20032Results `json:"results"`
}

type InlineResponse20032Results

type InlineResponse20032Results struct {
	Id    int32  `json:"id"`
	Title string `json:"title"`
}

type InlineResponse20033

type InlineResponse20033 struct {
	CleanTitle  string   `json:"cleanTitle"`
	Image       string   `json:"image"`
	Category    string   `json:"category"`
	Breadcrumbs []string `json:"breadcrumbs"`
	UsdaCode    int32    `json:"usdaCode"`
}

type InlineResponse20034

type InlineResponse20034 struct {
	Original        string                       `json:"original"`
	OriginalName    string                       `json:"originalName"`
	IngredientImage string                       `json:"ingredientImage"`
	Meta            []string                     `json:"meta"`
	Products        []FoodIngredientsMapProducts `json:"products"`
}

type InlineResponse20035

type InlineResponse20035 struct {
	MenuItems      []InlineResponse20035MenuItems `json:"menuItems"`
	TotalMenuItems int32                          `json:"totalMenuItems"`
	Type           string                         `json:"type"`
	Offset         int32                          `json:"offset"`
	Number         int32                          `json:"number"`
}

type InlineResponse20035MenuItems

type InlineResponse20035MenuItems struct {
	Id              int32                       `json:"id"`
	Title           string                      `json:"title"`
	RestaurantChain string                      `json:"restaurantChain"`
	Image           string                      `json:"image"`
	ImageType       string                      `json:"imageType"`
	Servings        InlineResponse20028Servings `json:"servings,omitempty"`
}

type InlineResponse20036

type InlineResponse20036 struct {
	Id               int32                        `json:"id"`
	Title            string                       `json:"title"`
	RestaurantChain  string                       `json:"restaurantChain"`
	Nutrition        InlineResponse20028Nutrition `json:"nutrition"`
	Badges           []string                     `json:"badges"`
	Breadcrumbs      []string                     `json:"breadcrumbs"`
	GeneratedText    string                       `json:"generatedText,omitempty"`
	ImageType        string                       `json:"imageType"`
	Likes            float32                      `json:"likes"`
	Servings         InlineResponse20028Servings  `json:"servings"`
	Price            float32                      `json:"price,omitempty"`
	SpoonacularScore float32                      `json:"spoonacularScore,omitempty"`
}

type InlineResponse20037

type InlineResponse20037 struct {
	Meals     []InlineResponse2005         `json:"meals"`
	Nutrients InlineResponse20037Nutrients `json:"nutrients"`
}

type InlineResponse20037Nutrients

type InlineResponse20037Nutrients struct {
	Calories      float32 `json:"calories"`
	Carbohydrates float32 `json:"carbohydrates"`
	Fat           float32 `json:"fat"`
	Protein       float32 `json:"protein"`
}

type InlineResponse20038

type InlineResponse20038 struct {
	Days []InlineResponse20038Days `json:"days"`
}

type InlineResponse20038Days

type InlineResponse20038Days struct {
	NutritionSummary          InlineResponse20038NutritionSummary `json:"nutritionSummary,omitempty"`
	NutritionSummaryBreakfast InlineResponse20038NutritionSummary `json:"nutritionSummaryBreakfast,omitempty"`
	NutritionSummaryLunch     InlineResponse20038NutritionSummary `json:"nutritionSummaryLunch,omitempty"`
	NutritionSummaryDinner    InlineResponse20038NutritionSummary `json:"nutritionSummaryDinner,omitempty"`
	Date                      float32                             `json:"date"`
	Day                       string                              `json:"day"`
	Items                     []InlineResponse20038Items          `json:"items,omitempty"`
}

type InlineResponse20038Items

type InlineResponse20038Items struct {
	Id       int32                    `json:"id"`
	Slot     int32                    `json:"slot"`
	Position int32                    `json:"position"`
	Type     string                   `json:"type"`
	Value    InlineResponse20038Value `json:"value,omitempty"`
}

type InlineResponse20038NutritionSummary

type InlineResponse20038NutritionSummary struct {
	Nutrients []InlineResponse20038NutritionSummaryNutrients `json:"nutrients"`
}

type InlineResponse20038NutritionSummaryNutrients

type InlineResponse20038NutritionSummaryNutrients struct {
	Name              string  `json:"name"`
	Amount            float32 `json:"amount"`
	Unit              string  `json:"unit"`
	PercentDailyNeeds float32 `json:"percentDailyNeeds"`
}

type InlineResponse20038Value

type InlineResponse20038Value struct {
	Servings  float32 `json:"servings"`
	Id        float32 `json:"id"`
	Title     string  `json:"title"`
	ImageType string  `json:"imageType"`
}

type InlineResponse20039

type InlineResponse20039 struct {
	Templates []InlineResponse20013Ingredients1 `json:"templates"`
}

type InlineResponse2003ExtendedIngredients

type InlineResponse2003ExtendedIngredients struct {
	Aisle        string                     `json:"aisle"`
	Amount       float32                    `json:"amount"`
	Consitency   string                     `json:"consitency"`
	Id           int32                      `json:"id"`
	Image        string                     `json:"image"`
	Measures     InlineResponse2003Measures `json:"measures,omitempty"`
	Meta         []string                   `json:"meta,omitempty"`
	Name         string                     `json:"name"`
	Original     string                     `json:"original"`
	OriginalName string                     `json:"originalName"`
	Unit         string                     `json:"unit"`
}

type InlineResponse2003Measures

type InlineResponse2003Measures struct {
	Metric InlineResponse2003MeasuresMetric `json:"metric"`
	Us     InlineResponse2003MeasuresMetric `json:"us"`
}

type InlineResponse2003MeasuresMetric

type InlineResponse2003MeasuresMetric struct {
	Amount    float32 `json:"amount"`
	UnitLong  string  `json:"unitLong"`
	UnitShort string  `json:"unitShort"`
}

type InlineResponse2003WinePairing

type InlineResponse2003WinePairing struct {
	PairedWines    []string                                      `json:"pairedWines"`
	PairingText    string                                        `json:"pairingText"`
	ProductMatches []InlineResponse2003WinePairingProductMatches `json:"productMatches"`
}

type InlineResponse2003WinePairingProductMatches

type InlineResponse2003WinePairingProductMatches struct {
	Id            int32   `json:"id"`
	Title         string  `json:"title"`
	Description   string  `json:"description"`
	Price         string  `json:"price"`
	ImageUrl      string  `json:"imageUrl"`
	AverageRating float32 `json:"averageRating"`
	RatingCount   int32   `json:"ratingCount"`
	Score         float32 `json:"score"`
	Link          string  `json:"link"`
}

type InlineResponse2004

type InlineResponse2004 struct {
	Id                       int32                                   `json:"id"`
	Title                    string                                  `json:"title"`
	Image                    string                                  `json:"image"`
	ImageType                string                                  `json:"imageType"`
	Servings                 float32                                 `json:"servings"`
	ReadyInMinutes           int32                                   `json:"readyInMinutes"`
	License                  string                                  `json:"license"`
	SourceName               string                                  `json:"sourceName"`
	SourceUrl                string                                  `json:"sourceUrl"`
	SpoonacularSourceUrl     string                                  `json:"spoonacularSourceUrl"`
	AggregateLikes           int32                                   `json:"aggregateLikes"`
	HealthScore              float32                                 `json:"healthScore"`
	SpoonacularScore         float32                                 `json:"spoonacularScore"`
	PricePerServing          float32                                 `json:"pricePerServing"`
	AnalyzedInstructions     []string                                `json:"analyzedInstructions"`
	Cheap                    bool                                    `json:"cheap"`
	CreditsText              string                                  `json:"creditsText"`
	Cuisines                 []string                                `json:"cuisines"`
	DairyFree                bool                                    `json:"dairyFree"`
	Diets                    []string                                `json:"diets"`
	Gaps                     string                                  `json:"gaps"`
	GlutenFree               bool                                    `json:"glutenFree"`
	Instructions             string                                  `json:"instructions"`
	Ketogenic                bool                                    `json:"ketogenic"`
	LowFodmap                bool                                    `json:"lowFodmap"`
	Occasions                []string                                `json:"occasions"`
	Sustainable              bool                                    `json:"sustainable"`
	Vegan                    bool                                    `json:"vegan"`
	Vegetarian               bool                                    `json:"vegetarian"`
	VeryHealthy              bool                                    `json:"veryHealthy"`
	VeryPopular              bool                                    `json:"veryPopular"`
	Whole30                  bool                                    `json:"whole30"`
	WeightWatcherSmartPoints float32                                 `json:"weightWatcherSmartPoints"`
	DishTypes                []string                                `json:"dishTypes"`
	ExtendedIngredients      []InlineResponse2003ExtendedIngredients `json:"extendedIngredients"`
	Summary                  string                                  `json:"summary"`
	WinePairing              InlineResponse2003WinePairing           `json:"winePairing"`
}

type InlineResponse20040

type InlineResponse20040 struct {
	Name            string                     `json:"name"`
	Items           []InlineResponse20040Items `json:"items"`
	PublishAsPublic bool                       `json:"publishAsPublic"`
}

type InlineResponse20040Items

type InlineResponse20040Items struct {
	Day      int32                    `json:"day"`
	Slot     int32                    `json:"slot"`
	Position int32                    `json:"position"`
	Type     string                   `json:"type"`
	Value    InlineResponse20040Value `json:"value,omitempty"`
}

type InlineResponse20040Value

type InlineResponse20040Value struct {
	Id        int32   `json:"id,omitempty"`
	Servings  float32 `json:"servings,omitempty"`
	Title     string  `json:"title,omitempty"`
	ImageType string  `json:"imageType,omitempty"`
}

type InlineResponse20041

type InlineResponse20041 struct {
	Id   int32                     `json:"id"`
	Name string                    `json:"name"`
	Days []InlineResponse20041Days `json:"days"`
}

type InlineResponse20041Days

type InlineResponse20041Days struct {
	NutritionSummary          InlineResponse20038NutritionSummary `json:"nutritionSummary,omitempty"`
	NutritionSummaryBreakfast InlineResponse20038NutritionSummary `json:"nutritionSummaryBreakfast,omitempty"`
	NutritionSummaryLunch     InlineResponse20038NutritionSummary `json:"nutritionSummaryLunch,omitempty"`
	NutritionSummaryDinner    InlineResponse20038NutritionSummary `json:"nutritionSummaryDinner,omitempty"`
	Day                       string                              `json:"day"`
	Items                     []InlineResponse20041Items          `json:"items,omitempty"`
}

type InlineResponse20041Items

type InlineResponse20041Items struct {
	Id       int32                    `json:"id"`
	Slot     int32                    `json:"slot"`
	Position int32                    `json:"position"`
	Type     string                   `json:"type"`
	Value    InlineResponse20041Value `json:"value,omitempty"`
}

type InlineResponse20041Value

type InlineResponse20041Value struct {
	Id        float32 `json:"id"`
	Title     string  `json:"title"`
	ImageType string  `json:"imageType"`
}

type InlineResponse20042

type InlineResponse20042 struct {
	Aisles    []InlineResponse20042Aisles `json:"aisles"`
	Cost      float32                     `json:"cost"`
	StartDate float32                     `json:"startDate"`
	EndDate   float32                     `json:"endDate"`
}

type InlineResponse20042Aisles

type InlineResponse20042Aisles struct {
	Aisle string                     `json:"aisle"`
	Items []InlineResponse20042Items `json:"items,omitempty"`
}

type InlineResponse20042Items

type InlineResponse20042Items struct {
	Id           int32                       `json:"id"`
	Name         string                      `json:"name"`
	Measures     InlineResponse20042Measures `json:"measures,omitempty"`
	PantryItem   bool                        `json:"pantryItem"`
	Aisle        string                      `json:"aisle"`
	Cost         float32                     `json:"cost"`
	IngredientId int32                       `json:"ingredientId"`
}

type InlineResponse20042Measures

type InlineResponse20042Measures struct {
	Original RecipesParseIngredientsNutritionWeightPerServing `json:"original"`
	Metric   RecipesParseIngredientsNutritionWeightPerServing `json:"metric"`
	Us       RecipesParseIngredientsNutritionWeightPerServing `json:"us"`
}

type InlineResponse20043

type InlineResponse20043 struct {
	Username string `json:"username"`
	Hash     string `json:"hash"`
}

type InlineResponse20044

type InlineResponse20044 struct {
	Pairings []string `json:"pairings"`
	Text     string   `json:"text"`
}

type InlineResponse20045

type InlineResponse20045 struct {
	PairedWines    []string                            `json:"pairedWines"`
	PairingText    string                              `json:"pairingText"`
	ProductMatches []InlineResponse20045ProductMatches `json:"productMatches"`
}

type InlineResponse20045ProductMatches

type InlineResponse20045ProductMatches struct {
	Id            int32                  `json:"id"`
	Title         string                 `json:"title"`
	AverageRating float32                `json:"averageRating"`
	Description   map[string]interface{} `json:"description,omitempty"`
	ImageUrl      string                 `json:"imageUrl"`
	Link          string                 `json:"link"`
	Price         string                 `json:"price"`
	RatingCount   int32                  `json:"ratingCount"`
	Score         float32                `json:"score"`
}

type InlineResponse20046

type InlineResponse20046 struct {
	WineDescription string `json:"wineDescription"`
}

type InlineResponse20047

type InlineResponse20047 struct {
	RecommendedWines []InlineResponse20047RecommendedWines `json:"recommendedWines"`
	TotalFound       int32                                 `json:"totalFound"`
}

type InlineResponse20047RecommendedWines

type InlineResponse20047RecommendedWines struct {
	Id            int32   `json:"id"`
	Title         string  `json:"title"`
	AverageRating float32 `json:"averageRating"`
	Description   string  `json:"description"`
	ImageUrl      string  `json:"imageUrl"`
	Link          string  `json:"link"`
	Price         string  `json:"price"`
	RatingCount   int32   `json:"ratingCount"`
	Score         float32 `json:"score"`
}

type InlineResponse20048

type InlineResponse20048 struct {
	Category    string  `json:"category"`
	Probability float32 `json:"probability"`
}

type InlineResponse20049

type InlineResponse20049 struct {
	Nutrition InlineResponse20049Nutrition `json:"nutrition"`
	Category  InlineResponse20049Category  `json:"category"`
	Recipes   []InlineResponse20049Recipes `json:"recipes"`
}

type InlineResponse20049Category

type InlineResponse20049Category struct {
	Name        string  `json:"name"`
	Probability float32 `json:"probability"`
}

type InlineResponse20049Nutrition

type InlineResponse20049Nutrition struct {
	RecipesUsed int32                                `json:"recipesUsed"`
	Calories    InlineResponse20049NutritionCalories `json:"calories"`
	Fat         InlineResponse20049NutritionCalories `json:"fat"`
	Protein     InlineResponse20049NutritionCalories `json:"protein"`
	Carbs       InlineResponse20049NutritionCalories `json:"carbs"`
}

type InlineResponse20049NutritionCalories

type InlineResponse20049NutritionCalories struct {
	Value                    float32                                                      `json:"value"`
	Unit                     string                                                       `json:"unit"`
	ConfidenceRange95Percent InlineResponse20049NutritionCaloriesConfidenceRange95Percent `json:"confidenceRange95Percent"`
	StandardDeviation        float32                                                      `json:"standardDeviation"`
}

type InlineResponse20049NutritionCaloriesConfidenceRange95Percent

type InlineResponse20049NutritionCaloriesConfidenceRange95Percent struct {
	Min float32 `json:"min"`
	Max float32 `json:"max"`
}

type InlineResponse20049Recipes

type InlineResponse20049Recipes struct {
	Id        int32  `json:"id"`
	Title     string `json:"title"`
	ImageType string `json:"imageType"`
	Url       string `json:"url"`
}

type InlineResponse2005

type InlineResponse2005 struct {
	Id             int32   `json:"id"`
	Title          string  `json:"title"`
	ImageType      string  `json:"imageType"`
	ReadyInMinutes int32   `json:"readyInMinutes"`
	Servings       float32 `json:"servings"`
	SourceUrl      string  `json:"sourceUrl"`
}

type InlineResponse20050

type InlineResponse20050 struct {
	Answer string `json:"answer"`
	Image  string `json:"image"`
}

type InlineResponse20051

type InlineResponse20051 struct {
	Annotations []map[string]interface{} `json:"annotations"`
}

type InlineResponse20052

type InlineResponse20052 struct {
	Articles        []map[string]interface{} `json:"Articles"`
	GroceryProducts []map[string]interface{} `json:"Grocery Products"`
	MenuItems       []map[string]interface{} `json:"Menu Items"`
	Recipes         []map[string]interface{} `json:"Recipes"`
}

type InlineResponse20053

type InlineResponse20053 struct {
	Query         string                             `json:"query"`
	TotalResults  int32                              `json:"totalResults"`
	Limit         int32                              `json:"limit"`
	Offset        int32                              `json:"offset"`
	SearchResults []InlineResponse20053SearchResults `json:"searchResults"`
}

type InlineResponse20053Results

type InlineResponse20053Results struct {
	Id        string  `json:"id"`
	Name      string  `json:"name"`
	Image     *string `json:"image"`
	Link      *string `json:"link"`
	Type      string  `json:"type"`
	Relevance float32 `json:"relevance"`
	Content   *string `json:"content"`
}

type InlineResponse20053SearchResults

type InlineResponse20053SearchResults struct {
	Name         string                       `json:"name"`
	TotalResults int32                        `json:"totalResults"`
	Results      []InlineResponse20053Results `json:"results,omitempty"`
}

type InlineResponse20054

type InlineResponse20054 struct {
	Videos       []InlineResponse20054Videos `json:"videos"`
	TotalResults int32                       `json:"totalResults"`
}

type InlineResponse20054Videos

type InlineResponse20054Videos struct {
	Title      string  `json:"title"`
	Length     int32   `json:"length"`
	Rating     float32 `json:"rating"`
	ShortTitle string  `json:"shortTitle"`
	Thumbnail  string  `json:"thumbnail"`
	Views      int32   `json:"views"`
	YouTubeId  string  `json:"youTubeId"`
}

type InlineResponse20055

type InlineResponse20055 struct {
	Text string `json:"text"`
}

type InlineResponse20056

type InlineResponse20056 struct {
	AnswerText string                   `json:"answerText"`
	Media      []map[string]interface{} `json:"media"`
}

type InlineResponse20057

type InlineResponse20057 struct {
	Suggests InlineResponse20057Suggests `json:"suggests"`
	Words    []map[string]interface{}    `json:"words"`
}

type InlineResponse20057Suggests

type InlineResponse20057Suggests struct {
	// contains filtered or unexported fields
}

type InlineResponse2006

type InlineResponse2006 struct {
	Recipes []InlineResponse2006Recipes `json:"recipes"`
}

type InlineResponse2006Recipes

type InlineResponse2006Recipes struct {
	Id                       int32                                   `json:"id"`
	Title                    string                                  `json:"title"`
	Image                    string                                  `json:"image"`
	ImageType                string                                  `json:"imageType"`
	Servings                 float32                                 `json:"servings"`
	ReadyInMinutes           int32                                   `json:"readyInMinutes"`
	License                  string                                  `json:"license"`
	SourceName               string                                  `json:"sourceName"`
	SourceUrl                string                                  `json:"sourceUrl"`
	SpoonacularSourceUrl     string                                  `json:"spoonacularSourceUrl"`
	AggregateLikes           float32                                 `json:"aggregateLikes"`
	HealthScore              float32                                 `json:"healthScore"`
	SpoonacularScore         float32                                 `json:"spoonacularScore"`
	PricePerServing          float32                                 `json:"pricePerServing"`
	AnalyzedInstructions     []map[string]interface{}                `json:"analyzedInstructions,omitempty"`
	Cheap                    bool                                    `json:"cheap"`
	CreditsText              string                                  `json:"creditsText"`
	Cuisines                 []string                                `json:"cuisines,omitempty"`
	DairyFree                bool                                    `json:"dairyFree"`
	Diets                    []string                                `json:"diets,omitempty"`
	Gaps                     string                                  `json:"gaps"`
	GlutenFree               bool                                    `json:"glutenFree"`
	Instructions             string                                  `json:"instructions"`
	Ketogenic                bool                                    `json:"ketogenic"`
	LowFodmap                bool                                    `json:"lowFodmap"`
	Occasions                []string                                `json:"occasions,omitempty"`
	Sustainable              bool                                    `json:"sustainable"`
	Vegan                    bool                                    `json:"vegan"`
	Vegetarian               bool                                    `json:"vegetarian"`
	VeryHealthy              bool                                    `json:"veryHealthy"`
	VeryPopular              bool                                    `json:"veryPopular"`
	Whole30                  bool                                    `json:"whole30"`
	WeightWatcherSmartPoints float32                                 `json:"weightWatcherSmartPoints"`
	DishTypes                []string                                `json:"dishTypes,omitempty"`
	ExtendedIngredients      []InlineResponse2003ExtendedIngredients `json:"extendedIngredients,omitempty"`
	Summary                  string                                  `json:"summary"`
	WinePairing              InlineResponse2003WinePairing           `json:"winePairing,omitempty"`
}

type InlineResponse2007

type InlineResponse2007 struct {
	Id        int32  `json:"id"`
	Title     string `json:"title"`
	ImageType string `json:"imageType"`
}

type InlineResponse2008

type InlineResponse2008 struct {
	Sweetness  float32 `json:"sweetness"`
	Saltiness  float32 `json:"saltiness"`
	Sourness   float32 `json:"sourness"`
	Bitterness float32 `json:"bitterness"`
	Savoriness float32 `json:"savoriness"`
	Fattiness  float32 `json:"fattiness"`
	Spiciness  float32 `json:"spiciness"`
}

type InlineResponse2009

type InlineResponse2009 struct {
	Equipment []map[string]interface{} `json:"equipment"`
}

type InlineResponse200Results

type InlineResponse200Results struct {
	Id        int32   `json:"id"`
	Title     string  `json:"title"`
	Calories  float32 `json:"calories"`
	Carbs     string  `json:"carbs"`
	Fat       string  `json:"fat"`
	Image     string  `json:"image"`
	ImageType string  `json:"imageType"`
	Protein   string  `json:"protein"`
}

type MealPlanningApiService

type MealPlanningApiService service

func (*MealPlanningApiService) AddMealPlanTemplate

func (a *MealPlanningApiService) AddMealPlanTemplate(ctx context.Context, username string, hash string, inlineObject6 InlineObject6) (InlineResponse20040, *http.Response, error)

MealPlanningApiService Add Meal Plan Template Add a meal plan template for a user.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The username.
  • @param hash The private hash for the username.
  • @param inlineObject6

@return InlineResponse20040

func (*MealPlanningApiService) AddToMealPlan

func (a *MealPlanningApiService) AddToMealPlan(ctx context.Context, username string, hash string, inlineObject4 InlineObject4) (map[string]interface{}, *http.Response, error)

MealPlanningApiService Add to Meal Plan Add an item to the user's meal plan.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The username.
  • @param hash The private hash for the username.
  • @param inlineObject4

@return map[string]interface{}

func (*MealPlanningApiService) AddToShoppingList

func (a *MealPlanningApiService) AddToShoppingList(ctx context.Context, username string, hash string, inlineObject9 InlineObject9) (InlineResponse20042, *http.Response, error)

MealPlanningApiService Add to Shopping List Add an item to the current shopping list of a user.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The username.
  • @param hash The private hash for the username.
  • @param inlineObject9

@return InlineResponse20042

func (*MealPlanningApiService) ClearMealPlanDay

func (a *MealPlanningApiService) ClearMealPlanDay(ctx context.Context, username string, date string, hash string, inlineObject3 InlineObject3) (map[string]interface{}, *http.Response, error)

MealPlanningApiService Clear Meal Plan Day Delete all planned items from the user's meal plan for a specific day.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The username.
  • @param date The date in the format yyyy-mm-dd.
  • @param hash The private hash for the username.
  • @param inlineObject3

@return map[string]interface{}

func (*MealPlanningApiService) ConnectUser

func (a *MealPlanningApiService) ConnectUser(ctx context.Context, body map[string]interface{}) (InlineResponse20043, *http.Response, error)

MealPlanningApiService Connect User In order to call user-specific endpoints, you need to connect your app's users to spoonacular users.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body

@return InlineResponse20043

func (*MealPlanningApiService) DeleteFromMealPlan

func (a *MealPlanningApiService) DeleteFromMealPlan(ctx context.Context, username string, id float32, hash string, inlineObject5 InlineObject5) (map[string]interface{}, *http.Response, error)

MealPlanningApiService Delete from Meal Plan Delete an item from the user's meal plan.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The username.
  • @param id The shopping list item id.
  • @param hash The private hash for the username.
  • @param inlineObject5

@return map[string]interface{}

func (*MealPlanningApiService) DeleteFromShoppingList

func (a *MealPlanningApiService) DeleteFromShoppingList(ctx context.Context, username string, id int32, hash string, inlineObject10 InlineObject10) (map[string]interface{}, *http.Response, error)

MealPlanningApiService Delete from Shopping List Delete an item from the current shopping list of the user.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The username.
  • @param id The item's id.
  • @param hash The private hash for the username.
  • @param inlineObject10

@return map[string]interface{}

func (*MealPlanningApiService) DeleteMealPlanTemplate

func (a *MealPlanningApiService) DeleteMealPlanTemplate(ctx context.Context, username string, id int32, hash string, inlineObject7 InlineObject7) (map[string]interface{}, *http.Response, error)

MealPlanningApiService Delete Meal Plan Template Delete a meal plan template for a user.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The username.
  • @param id The item's id.
  • @param hash The private hash for the username.
  • @param inlineObject7

@return map[string]interface{}

func (*MealPlanningApiService) GenerateMealPlan

func (a *MealPlanningApiService) GenerateMealPlan(ctx context.Context, localVarOptionals *GenerateMealPlanOpts) (InlineResponse20037, *http.Response, error)

func (*MealPlanningApiService) GenerateShoppingList

func (a *MealPlanningApiService) GenerateShoppingList(ctx context.Context, username string, startDate string, endDate string, hash string, inlineObject8 InlineObject8) (InlineResponse20042, *http.Response, error)

MealPlanningApiService Generate Shopping List Generate the shopping list for a user from the meal planner in a given time frame.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The username.
  • @param startDate The start date in the format yyyy-mm-dd.
  • @param endDate The end date in the format yyyy-mm-dd.
  • @param hash The private hash for the username.
  • @param inlineObject8

@return InlineResponse20042

func (*MealPlanningApiService) GetMealPlanTemplate

func (a *MealPlanningApiService) GetMealPlanTemplate(ctx context.Context, username string, id int32, hash string) (InlineResponse20041, *http.Response, error)

MealPlanningApiService Get Meal Plan Template Get information about a meal plan template.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The username.
  • @param id The item's id.
  • @param hash The private hash for the username.

@return InlineResponse20041

func (*MealPlanningApiService) GetMealPlanTemplates

func (a *MealPlanningApiService) GetMealPlanTemplates(ctx context.Context, username string, hash string) (InlineResponse20039, *http.Response, error)

MealPlanningApiService Get Meal Plan Templates Get meal plan templates from user or public ones.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The username.
  • @param hash The private hash for the username.

@return InlineResponse20039

func (*MealPlanningApiService) GetMealPlanWeek

func (a *MealPlanningApiService) GetMealPlanWeek(ctx context.Context, username string, startDate string, hash string) (InlineResponse20038, *http.Response, error)

MealPlanningApiService Get Meal Plan Week Retrieve a meal planned week for the given user. The username must be a spoonacular user and the hash must the the user's hash that can be found in his/her account.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The username.
  • @param startDate The start date of the meal planned week in the format yyyy-mm-dd.
  • @param hash The private hash for the username.

@return InlineResponse20038

func (*MealPlanningApiService) GetShoppingList

func (a *MealPlanningApiService) GetShoppingList(ctx context.Context, username string, hash string) (InlineResponse20042, *http.Response, error)

MealPlanningApiService Get Shopping List Get the current shopping list for the given user.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param username The username.
  • @param hash The private hash for the username.

@return InlineResponse20042

type MenuItemNutritionLabelImageOpts struct {
	ShowOptionalNutrients optional.Bool
	ShowZeroValues        optional.Bool
	ShowIngredients       optional.Bool
}
type MenuItemNutritionLabelWidgetOpts struct {
	DefaultCss            optional.Bool
	ShowOptionalNutrients optional.Bool
	ShowZeroValues        optional.Bool
	ShowIngredients       optional.Bool
}
type MenuItemsApiService service
func (a *MenuItemsApiService) AutocompleteMenuItemSearch(ctx context.Context, query string, localVarOptionals *AutocompleteMenuItemSearchOpts) (InlineResponse20032, *http.Response, error)
func (a *MenuItemsApiService) GetMenuItemInformation(ctx context.Context, id int32) (InlineResponse20036, *http.Response, error)

MenuItemsApiService Get Menu Item Information Use a menu item id to get all available information about a menu item, such as nutrition.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The item's id.

@return InlineResponse20036

func (a *MenuItemsApiService) MenuItemNutritionByIDImage(ctx context.Context, id float32) (map[string]interface{}, *http.Response, error)

MenuItemsApiService Menu Item Nutrition by ID Image Visualize a menu item's nutritional information as HTML including CSS.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The menu item id.

@return map[string]interface{}

func (a *MenuItemsApiService) MenuItemNutritionLabelImage(ctx context.Context, id float32, localVarOptionals *MenuItemNutritionLabelImageOpts) (map[string]interface{}, *http.Response, error)
func (a *MenuItemsApiService) MenuItemNutritionLabelWidget(ctx context.Context, id float32, localVarOptionals *MenuItemNutritionLabelWidgetOpts) (string, *http.Response, error)
func (a *MenuItemsApiService) SearchMenuItems(ctx context.Context, localVarOptionals *SearchMenuItemsOpts) (InlineResponse20035, *http.Response, error)
func (a *MenuItemsApiService) VisualizeMenuItemNutritionByID(ctx context.Context, id int32, localVarOptionals *VisualizeMenuItemNutritionByIDOpts) (string, *http.Response, error)

type MiscApiService

type MiscApiService service

func (*MiscApiService) DetectFoodInText

func (a *MiscApiService) DetectFoodInText(ctx context.Context, localVarOptionals *DetectFoodInTextOpts) (InlineResponse20051, *http.Response, error)

func (*MiscApiService) GetARandomFoodJoke

func (a *MiscApiService) GetARandomFoodJoke(ctx context.Context) (InlineResponse20055, *http.Response, error)

MiscApiService Random Food Joke Get a random joke that is related to food. Caution: this is an endpoint for adults!

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return InlineResponse20055

func (*MiscApiService) GetConversationSuggests

func (a *MiscApiService) GetConversationSuggests(ctx context.Context, query string, localVarOptionals *GetConversationSuggestsOpts) (InlineResponse20057, *http.Response, error)

func (*MiscApiService) GetRandomFoodTrivia

func (a *MiscApiService) GetRandomFoodTrivia(ctx context.Context) (InlineResponse20055, *http.Response, error)

MiscApiService Random Food Trivia Returns random food trivia.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return InlineResponse20055

func (*MiscApiService) ImageAnalysisByURL

func (a *MiscApiService) ImageAnalysisByURL(ctx context.Context, imageUrl string) (InlineResponse20049, *http.Response, error)

MiscApiService Image Analysis by URL Analyze a food image. The API tries to classify the image, guess the nutrition, and find a matching recipes.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param imageUrl The URL of the image to be analyzed.

@return InlineResponse20049

func (*MiscApiService) ImageClassificationByURL

func (a *MiscApiService) ImageClassificationByURL(ctx context.Context, imageUrl string) (InlineResponse20048, *http.Response, error)

MiscApiService Image Classification by URL Classify a food image.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param imageUrl The URL of the image to be classified.

@return InlineResponse20048

func (*MiscApiService) SearchAllFood

func (a *MiscApiService) SearchAllFood(ctx context.Context, query string, localVarOptionals *SearchAllFoodOpts) (InlineResponse20053, *http.Response, error)

func (*MiscApiService) SearchCustomFoods

func (a *MiscApiService) SearchCustomFoods(ctx context.Context, username string, hash string, localVarOptionals *SearchCustomFoodsOpts) (InlineResponse20029, *http.Response, error)

func (*MiscApiService) SearchFoodVideos

func (a *MiscApiService) SearchFoodVideos(ctx context.Context, localVarOptionals *SearchFoodVideosOpts) (InlineResponse20054, *http.Response, error)

func (*MiscApiService) SearchSiteContent

func (a *MiscApiService) SearchSiteContent(ctx context.Context, query string) (InlineResponse20052, *http.Response, error)

MiscApiService Search Site Content Search spoonacular's site content. You'll be able to find everything that you could also find using the search suggestions on spoonacular.com. This is a suggest API so you can send partial strings as queries.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param query The query to search for. You can also use partial queries such as \"spagh\" to already find spaghetti recipes, articles, grocery products, and other content.

@return InlineResponse20052

func (*MiscApiService) TalkToChatbot

func (a *MiscApiService) TalkToChatbot(ctx context.Context, text string, localVarOptionals *TalkToChatbotOpts) (InlineResponse20056, *http.Response, error)

type ParseIngredientsOpts

type ParseIngredientsOpts struct {
	ContentType optional.String
	Language    optional.String
}

type ProductNutritionLabelImageOpts

type ProductNutritionLabelImageOpts struct {
	ShowOptionalNutrients optional.Bool
	ShowZeroValues        optional.Bool
	ShowIngredients       optional.Bool
}

type ProductNutritionLabelWidgetOpts

type ProductNutritionLabelWidgetOpts struct {
	DefaultCss            optional.Bool
	ShowOptionalNutrients optional.Bool
	ShowZeroValues        optional.Bool
	ShowIngredients       optional.Bool
}

type ProductsApiService

type ProductsApiService service

func (*ProductsApiService) AutocompleteProductSearch

func (a *ProductsApiService) AutocompleteProductSearch(ctx context.Context, query string, localVarOptionals *AutocompleteProductSearchOpts) (InlineResponse20032, *http.Response, error)

func (*ProductsApiService) ClassifyGroceryProduct

func (a *ProductsApiService) ClassifyGroceryProduct(ctx context.Context, inlineObject1 InlineObject1, localVarOptionals *ClassifyGroceryProductOpts) (InlineResponse20033, *http.Response, error)

func (*ProductsApiService) ClassifyGroceryProductBulk

func (a *ProductsApiService) ClassifyGroceryProductBulk(ctx context.Context, inlineObject []InlineObject, localVarOptionals *ClassifyGroceryProductBulkOpts) ([]InlineResponse20033, *http.Response, error)

func (*ProductsApiService) GetComparableProducts

func (a *ProductsApiService) GetComparableProducts(ctx context.Context, upc float32) (InlineResponse20031, *http.Response, error)

ProductsApiService Get Comparable Products Find comparable products to the given one.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param upc The UPC of the product for which you want to find comparable products.

@return InlineResponse20031

func (*ProductsApiService) GetProductInformation

func (a *ProductsApiService) GetProductInformation(ctx context.Context, id int32) (InlineResponse20030, *http.Response, error)

ProductsApiService Get Product Information Use a product id to get full information about a product, such as ingredients, nutrition, etc. The nutritional information is per serving.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The item's id.

@return InlineResponse20030

func (*ProductsApiService) ProductNutritionByIDImage

func (a *ProductsApiService) ProductNutritionByIDImage(ctx context.Context, id float32) (map[string]interface{}, *http.Response, error)

ProductsApiService Product Nutrition by ID Image Visualize a product's nutritional information as an image.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The id of the product.

@return map[string]interface{}

func (*ProductsApiService) ProductNutritionLabelImage

func (a *ProductsApiService) ProductNutritionLabelImage(ctx context.Context, id float32, localVarOptionals *ProductNutritionLabelImageOpts) (map[string]interface{}, *http.Response, error)

func (*ProductsApiService) ProductNutritionLabelWidget

func (a *ProductsApiService) ProductNutritionLabelWidget(ctx context.Context, id float32, localVarOptionals *ProductNutritionLabelWidgetOpts) (string, *http.Response, error)

func (*ProductsApiService) SearchGroceryProducts

func (a *ProductsApiService) SearchGroceryProducts(ctx context.Context, localVarOptionals *SearchGroceryProductsOpts) (InlineResponse20027, *http.Response, error)

func (*ProductsApiService) SearchGroceryProductsByUPC

func (a *ProductsApiService) SearchGroceryProductsByUPC(ctx context.Context, upc float32) (InlineResponse20028, *http.Response, error)

ProductsApiService Search Grocery Products by UPC Get information about a packaged food using its UPC.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param upc The product's UPC.

@return InlineResponse20028

func (*ProductsApiService) VisualizeProductNutritionByID

func (a *ProductsApiService) VisualizeProductNutritionByID(ctx context.Context, id int32, localVarOptionals *VisualizeProductNutritionByIDOpts) (string, *http.Response, error)

type RecipeNutritionLabelImageOpts

type RecipeNutritionLabelImageOpts struct {
	ShowOptionalNutrients optional.Bool
	ShowZeroValues        optional.Bool
	ShowIngredients       optional.Bool
}

type RecipeNutritionLabelWidgetOpts

type RecipeNutritionLabelWidgetOpts struct {
	DefaultCss            optional.Bool
	ShowOptionalNutrients optional.Bool
	ShowZeroValues        optional.Bool
	ShowIngredients       optional.Bool
}

type RecipeTasteByIDImageOpts

type RecipeTasteByIDImageOpts struct {
	Normalize optional.Bool
	Rgb       optional.String
}

type RecipesApiService

type RecipesApiService service

func (*RecipesApiService) AnalyzeARecipeSearchQuery

func (a *RecipesApiService) AnalyzeARecipeSearchQuery(ctx context.Context, q string) (InlineResponse20018, *http.Response, error)

RecipesApiService Analyze a Recipe Search Query Parse a recipe search query to find out its intention.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param q The recipe search query.

@return InlineResponse20018

func (*RecipesApiService) AnalyzeRecipeInstructions

func (a *RecipesApiService) AnalyzeRecipeInstructions(ctx context.Context, localVarOptionals *AnalyzeRecipeInstructionsOpts) (InlineResponse20016, *http.Response, error)

func (*RecipesApiService) AutocompleteRecipeSearch

func (a *RecipesApiService) AutocompleteRecipeSearch(ctx context.Context, localVarOptionals *AutocompleteRecipeSearchOpts) ([]InlineResponse2007, *http.Response, error)

func (*RecipesApiService) ClassifyCuisine

func (a *RecipesApiService) ClassifyCuisine(ctx context.Context, localVarOptionals *ClassifyCuisineOpts) (InlineResponse20017, *http.Response, error)

func (*RecipesApiService) ComputeGlycemicLoad

func (a *RecipesApiService) ComputeGlycemicLoad(ctx context.Context, inlineObject InlineObject, localVarOptionals *ComputeGlycemicLoadOpts) (InlineResponse20023, *http.Response, error)

func (*RecipesApiService) ConvertAmounts

func (a *RecipesApiService) ConvertAmounts(ctx context.Context, ingredientName string, sourceAmount float32, sourceUnit string, targetUnit string) (InlineResponse20019, *http.Response, error)

RecipesApiService Convert Amounts Convert amounts like \"2 cups of flour to grams\".

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param ingredientName The ingredient which you want to convert.
  • @param sourceAmount The amount from which you want to convert, e.g. the 2.5 in \"2.5 cups of flour to grams\".
  • @param sourceUnit The unit from which you want to convert, e.g. the grams in \"2.5 cups of flour to grams\". You can also use \"piece\", e.g. \"3.4 oz tomatoes to piece\"
  • @param targetUnit The unit to which you want to convert, e.g. the grams in \"2.5 cups of flour to grams\". You can also use \"piece\", e.g. \"3.4 oz tomatoes to piece\"

@return InlineResponse20019

func (*RecipesApiService) CreateRecipeCard

func (a *RecipesApiService) CreateRecipeCard(ctx context.Context, localVarOptionals *CreateRecipeCardOpts) (InlineResponse20015, *http.Response, error)

func (*RecipesApiService) EquipmentByIDImage

func (a *RecipesApiService) EquipmentByIDImage(ctx context.Context, id float32) (map[string]interface{}, *http.Response, error)

RecipesApiService Equipment by ID Image Visualize a recipe's equipment list as an image.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The recipe id.

@return map[string]interface{}

func (*RecipesApiService) ExtractRecipeFromWebsite

func (a *RecipesApiService) ExtractRecipeFromWebsite(ctx context.Context, url string, localVarOptionals *ExtractRecipeFromWebsiteOpts) (InlineResponse2003, *http.Response, error)

func (*RecipesApiService) GetAnalyzedRecipeInstructions

func (a *RecipesApiService) GetAnalyzedRecipeInstructions(ctx context.Context, id int32, localVarOptionals *GetAnalyzedRecipeInstructionsOpts) (InlineResponse20013, *http.Response, error)

func (*RecipesApiService) GetRandomRecipes

func (a *RecipesApiService) GetRandomRecipes(ctx context.Context, localVarOptionals *GetRandomRecipesOpts) (InlineResponse2006, *http.Response, error)

func (*RecipesApiService) GetRecipeEquipmentByID

func (a *RecipesApiService) GetRecipeEquipmentByID(ctx context.Context, id int32) (InlineResponse2009, *http.Response, error)

RecipesApiService Equipment by ID Get a recipe's equipment list.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The item's id.

@return InlineResponse2009

func (*RecipesApiService) GetRecipeInformation

func (a *RecipesApiService) GetRecipeInformation(ctx context.Context, id int32, localVarOptionals *GetRecipeInformationOpts) (InlineResponse2003, *http.Response, error)

func (*RecipesApiService) GetRecipeInformationBulk

func (a *RecipesApiService) GetRecipeInformationBulk(ctx context.Context, ids string, localVarOptionals *GetRecipeInformationBulkOpts) ([]InlineResponse2004, *http.Response, error)

func (*RecipesApiService) GetRecipeIngredientsByID

func (a *RecipesApiService) GetRecipeIngredientsByID(ctx context.Context, id int32) (InlineResponse20011, *http.Response, error)

RecipesApiService Ingredients by ID Get a recipe's ingredient list.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The item's id.

@return InlineResponse20011

func (*RecipesApiService) GetRecipeNutritionWidgetByID

func (a *RecipesApiService) GetRecipeNutritionWidgetByID(ctx context.Context, id int32) (InlineResponse20012, *http.Response, error)

RecipesApiService Nutrition by ID Get a recipe's nutrition data.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The item's id.

@return InlineResponse20012

func (*RecipesApiService) GetRecipePriceBreakdownByID

func (a *RecipesApiService) GetRecipePriceBreakdownByID(ctx context.Context, id int32) (InlineResponse20010, *http.Response, error)

RecipesApiService Price Breakdown by ID Get a recipe's price breakdown data.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The item's id.

@return InlineResponse20010

func (*RecipesApiService) GetRecipeTasteByID

func (a *RecipesApiService) GetRecipeTasteByID(ctx context.Context, id int32, localVarOptionals *GetRecipeTasteByIDOpts) (InlineResponse2008, *http.Response, error)

func (*RecipesApiService) GetSimilarRecipes

func (a *RecipesApiService) GetSimilarRecipes(ctx context.Context, id int32, localVarOptionals *GetSimilarRecipesOpts) ([]InlineResponse2005, *http.Response, error)

func (*RecipesApiService) GuessNutritionByDishName

func (a *RecipesApiService) GuessNutritionByDishName(ctx context.Context, title string) (InlineResponse20021, *http.Response, error)

RecipesApiService Guess Nutrition by Dish Name Estimate the macronutrients of a dish based on its title.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title The title of the dish.

@return InlineResponse20021

func (*RecipesApiService) IngredientsByIDImage

func (a *RecipesApiService) IngredientsByIDImage(ctx context.Context, id float32, localVarOptionals *IngredientsByIDImageOpts) (map[string]interface{}, *http.Response, error)

func (*RecipesApiService) ParseIngredients

func (a *RecipesApiService) ParseIngredients(ctx context.Context, localVarOptionals *ParseIngredientsOpts) ([]InlineResponse20020, *http.Response, error)

func (*RecipesApiService) PriceBreakdownByIDImage

func (a *RecipesApiService) PriceBreakdownByIDImage(ctx context.Context, id float32) (map[string]interface{}, *http.Response, error)

RecipesApiService Price Breakdown by ID Image Visualize a recipe's price breakdown.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The recipe id.

@return map[string]interface{}

func (*RecipesApiService) QuickAnswer

RecipesApiService Quick Answer Answer a nutrition related natural language question.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param q The nutrition related question.

@return InlineResponse20050

func (*RecipesApiService) RecipeNutritionByIDImage

func (a *RecipesApiService) RecipeNutritionByIDImage(ctx context.Context, id float32) (map[string]interface{}, *http.Response, error)

RecipesApiService Recipe Nutrition by ID Image Visualize a recipe's nutritional information as an image.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The recipe id.

@return map[string]interface{}

func (*RecipesApiService) RecipeNutritionLabelImage

func (a *RecipesApiService) RecipeNutritionLabelImage(ctx context.Context, id float32, localVarOptionals *RecipeNutritionLabelImageOpts) (map[string]interface{}, *http.Response, error)

func (*RecipesApiService) RecipeNutritionLabelWidget

func (a *RecipesApiService) RecipeNutritionLabelWidget(ctx context.Context, id float32, localVarOptionals *RecipeNutritionLabelWidgetOpts) (string, *http.Response, error)

func (*RecipesApiService) RecipeTasteByIDImage

func (a *RecipesApiService) RecipeTasteByIDImage(ctx context.Context, id float32, localVarOptionals *RecipeTasteByIDImageOpts) (map[string]interface{}, *http.Response, error)

func (*RecipesApiService) SearchRecipes

func (a *RecipesApiService) SearchRecipes(ctx context.Context, localVarOptionals *SearchRecipesOpts) (InlineResponse200, *http.Response, error)

func (*RecipesApiService) SearchRecipesByIngredients

func (a *RecipesApiService) SearchRecipesByIngredients(ctx context.Context, localVarOptionals *SearchRecipesByIngredientsOpts) ([]InlineResponse2001, *http.Response, error)

func (*RecipesApiService) SearchRecipesByNutrients

func (a *RecipesApiService) SearchRecipesByNutrients(ctx context.Context, localVarOptionals *SearchRecipesByNutrientsOpts) ([]InlineResponse2002, *http.Response, error)

func (*RecipesApiService) SummarizeRecipe

func (a *RecipesApiService) SummarizeRecipe(ctx context.Context, id int32) (InlineResponse20014, *http.Response, error)

RecipesApiService Summarize Recipe Automatically generate a short description that summarizes key information about the recipe.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id The item's id.

@return InlineResponse20014

func (*RecipesApiService) VisualizeEquipment

func (a *RecipesApiService) VisualizeEquipment(ctx context.Context, localVarOptionals *VisualizeEquipmentOpts) (string, *http.Response, error)

func (*RecipesApiService) VisualizePriceBreakdown

func (a *RecipesApiService) VisualizePriceBreakdown(ctx context.Context, localVarOptionals *VisualizePriceBreakdownOpts) (string, *http.Response, error)

func (*RecipesApiService) VisualizeRecipeEquipmentByID

func (a *RecipesApiService) VisualizeRecipeEquipmentByID(ctx context.Context, id int32, localVarOptionals *VisualizeRecipeEquipmentByIDOpts) (string, *http.Response, error)

func (*RecipesApiService) VisualizeRecipeIngredientsByID

func (a *RecipesApiService) VisualizeRecipeIngredientsByID(ctx context.Context, id int32, localVarOptionals *VisualizeRecipeIngredientsByIDOpts) (string, *http.Response, error)

func (*RecipesApiService) VisualizeRecipeNutrition

func (a *RecipesApiService) VisualizeRecipeNutrition(ctx context.Context, localVarOptionals *VisualizeRecipeNutritionOpts) (string, *http.Response, error)

func (*RecipesApiService) VisualizeRecipeNutritionByID

func (a *RecipesApiService) VisualizeRecipeNutritionByID(ctx context.Context, id int32, localVarOptionals *VisualizeRecipeNutritionByIDOpts) (string, *http.Response, error)

func (*RecipesApiService) VisualizeRecipePriceBreakdownByID

func (a *RecipesApiService) VisualizeRecipePriceBreakdownByID(ctx context.Context, id int32, localVarOptionals *VisualizeRecipePriceBreakdownByIDOpts) (string, *http.Response, error)

func (*RecipesApiService) VisualizeRecipeTaste

func (a *RecipesApiService) VisualizeRecipeTaste(ctx context.Context, localVarOptionals *VisualizeRecipeTasteOpts) (string, *http.Response, error)

func (*RecipesApiService) VisualizeRecipeTasteByID

func (a *RecipesApiService) VisualizeRecipeTasteByID(ctx context.Context, id int32, localVarOptionals *VisualizeRecipeTasteByIDOpts) (string, *http.Response, error)

type RecipesFindByIngredientsMissedIngredients

type RecipesFindByIngredientsMissedIngredients struct {
	Aisle        string   `json:"aisle"`
	Amount       float32  `json:"amount"`
	Id           int32    `json:"id"`
	Image        string   `json:"image"`
	Meta         []string `json:"meta,omitempty"`
	Name         string   `json:"name"`
	Original     string   `json:"original"`
	OriginalName string   `json:"originalName"`
	Unit         string   `json:"unit"`
	UnitLong     string   `json:"unitLong"`
	UnitShort    string   `json:"unitShort"`
}

type RecipesParseIngredientsEstimatedCost

type RecipesParseIngredientsEstimatedCost struct {
	Value float32 `json:"value"`
	Unit  string  `json:"unit"`
}

type RecipesParseIngredientsNutrition

type RecipesParseIngredientsNutrition struct {
	Nutrients        []RecipesParseIngredientsNutritionNutrients      `json:"nutrients"`
	Properties       []RecipesParseIngredientsNutritionProperties     `json:"properties"`
	Flavonoids       []RecipesParseIngredientsNutritionProperties     `json:"flavonoids"`
	CaloricBreakdown RecipesParseIngredientsNutritionCaloricBreakdown `json:"caloricBreakdown"`
	WeightPerServing RecipesParseIngredientsNutritionWeightPerServing `json:"weightPerServing"`
}

type RecipesParseIngredientsNutritionCaloricBreakdown

type RecipesParseIngredientsNutritionCaloricBreakdown struct {
	PercentProtein float32 `json:"percentProtein"`
	PercentFat     float32 `json:"percentFat"`
	PercentCarbs   float32 `json:"percentCarbs"`
}

type RecipesParseIngredientsNutritionNutrients

type RecipesParseIngredientsNutritionNutrients struct {
	Name                string  `json:"name"`
	Amount              float32 `json:"amount"`
	Unit                string  `json:"unit"`
	PercentOfDailyNeeds float32 `json:"percentOfDailyNeeds"`
}

type RecipesParseIngredientsNutritionProperties

type RecipesParseIngredientsNutritionProperties struct {
	Name   string  `json:"name"`
	Amount float32 `json:"amount"`
	Unit   string  `json:"unit"`
}

type RecipesParseIngredientsNutritionWeightPerServing

type RecipesParseIngredientsNutritionWeightPerServing struct {
	Amount float32 `json:"amount"`
	Unit   string  `json:"unit"`
}

type SearchAllFoodOpts

type SearchAllFoodOpts struct {
	Offset optional.Int32
	Number optional.Int32
}

type SearchCustomFoodsOpts

type SearchCustomFoodsOpts struct {
	Query  optional.String
	Offset optional.Int32
	Number optional.Int32
}

type SearchFoodVideosOpts

type SearchFoodVideosOpts struct {
	Query              optional.String
	Type_              optional.String
	Cuisine            optional.String
	Diet               optional.String
	IncludeIngredients optional.String
	ExcludeIngredients optional.String
	MinLength          optional.Float32
	MaxLength          optional.Float32
	Offset             optional.Int32
	Number             optional.Int32
}

type SearchGroceryProductsOpts

type SearchGroceryProductsOpts struct {
	Query                 optional.String
	MinCalories           optional.Float32
	MaxCalories           optional.Float32
	MinCarbs              optional.Float32
	MaxCarbs              optional.Float32
	MinProtein            optional.Float32
	MaxProtein            optional.Float32
	MinFat                optional.Float32
	MaxFat                optional.Float32
	AddProductInformation optional.Bool
	Offset                optional.Int32
	Number                optional.Int32
}

type SearchMenuItemsOpts

type SearchMenuItemsOpts struct {
	Query                  optional.String
	MinCalories            optional.Float32
	MaxCalories            optional.Float32
	MinCarbs               optional.Float32
	MaxCarbs               optional.Float32
	MinProtein             optional.Float32
	MaxProtein             optional.Float32
	MinFat                 optional.Float32
	MaxFat                 optional.Float32
	AddMenuItemInformation optional.Bool
	Offset                 optional.Int32
	Number                 optional.Int32
}

type SearchRecipesByIngredientsOpts

type SearchRecipesByIngredientsOpts struct {
	Ingredients  optional.String
	Number       optional.Int32
	LimitLicense optional.Bool
	Ranking      optional.Float32
	IgnorePantry optional.Bool
}

type SearchRecipesByNutrientsOpts

type SearchRecipesByNutrientsOpts struct {
	MinCarbs        optional.Float32
	MaxCarbs        optional.Float32
	MinProtein      optional.Float32
	MaxProtein      optional.Float32
	MinCalories     optional.Float32
	MaxCalories     optional.Float32
	MinFat          optional.Float32
	MaxFat          optional.Float32
	MinAlcohol      optional.Float32
	MaxAlcohol      optional.Float32
	MinCaffeine     optional.Float32
	MaxCaffeine     optional.Float32
	MinCopper       optional.Float32
	MaxCopper       optional.Float32
	MinCalcium      optional.Float32
	MaxCalcium      optional.Float32
	MinCholine      optional.Float32
	MaxCholine      optional.Float32
	MinCholesterol  optional.Float32
	MaxCholesterol  optional.Float32
	MinFluoride     optional.Float32
	MaxFluoride     optional.Float32
	MinSaturatedFat optional.Float32
	MaxSaturatedFat optional.Float32
	MinVitaminA     optional.Float32
	MaxVitaminA     optional.Float32
	MinVitaminC     optional.Float32
	MaxVitaminC     optional.Float32
	MinVitaminD     optional.Float32
	MaxVitaminD     optional.Float32
	MinVitaminE     optional.Float32
	MaxVitaminE     optional.Float32
	MinVitaminK     optional.Float32
	MaxVitaminK     optional.Float32
	MinVitaminB1    optional.Float32
	MaxVitaminB1    optional.Float32
	MinVitaminB2    optional.Float32
	MaxVitaminB2    optional.Float32
	MinVitaminB5    optional.Float32
	MaxVitaminB5    optional.Float32
	MinVitaminB3    optional.Float32
	MaxVitaminB3    optional.Float32
	MinVitaminB6    optional.Float32
	MaxVitaminB6    optional.Float32
	MinVitaminB12   optional.Float32
	MaxVitaminB12   optional.Float32
	MinFiber        optional.Float32
	MaxFiber        optional.Float32
	MinFolate       optional.Float32
	MaxFolate       optional.Float32
	MinFolicAcid    optional.Float32
	MaxFolicAcid    optional.Float32
	MinIodine       optional.Float32
	MaxIodine       optional.Float32
	MinIron         optional.Float32
	MaxIron         optional.Float32
	MinMagnesium    optional.Float32
	MaxMagnesium    optional.Float32
	MinManganese    optional.Float32
	MaxManganese    optional.Float32
	MinPhosphorus   optional.Float32
	MaxPhosphorus   optional.Float32
	MinPotassium    optional.Float32
	MaxPotassium    optional.Float32
	MinSelenium     optional.Float32
	MaxSelenium     optional.Float32
	MinSodium       optional.Float32
	MaxSodium       optional.Float32
	MinSugar        optional.Float32
	MaxSugar        optional.Float32
	MinZinc         optional.Float32
	MaxZinc         optional.Float32
	Offset          optional.Int32
	Number          optional.Int32
	Random          optional.Bool
	LimitLicense    optional.Bool
}

type SearchRecipesOpts

type SearchRecipesOpts struct {
	Query                optional.String
	Cuisine              optional.String
	ExcludeCuisine       optional.String
	Diet                 optional.String
	Intolerances         optional.String
	Equipment            optional.String
	IncludeIngredients   optional.String
	ExcludeIngredients   optional.String
	Type_                optional.String
	InstructionsRequired optional.Bool
	FillIngredients      optional.Bool
	AddRecipeInformation optional.Bool
	AddRecipeNutrition   optional.Bool
	Author               optional.String
	Tags                 optional.String
	RecipeBoxId          optional.Float32
	TitleMatch           optional.String
	MaxReadyTime         optional.Float32
	IgnorePantry         optional.Bool
	Sort                 optional.String
	SortDirection        optional.String
	MinCarbs             optional.Float32
	MaxCarbs             optional.Float32
	MinProtein           optional.Float32
	MaxProtein           optional.Float32
	MinCalories          optional.Float32
	MaxCalories          optional.Float32
	MinFat               optional.Float32
	MaxFat               optional.Float32
	MinAlcohol           optional.Float32
	MaxAlcohol           optional.Float32
	MinCaffeine          optional.Float32
	MaxCaffeine          optional.Float32
	MinCopper            optional.Float32
	MaxCopper            optional.Float32
	MinCalcium           optional.Float32
	MaxCalcium           optional.Float32
	MinCholine           optional.Float32
	MaxCholine           optional.Float32
	MinCholesterol       optional.Float32
	MaxCholesterol       optional.Float32
	MinFluoride          optional.Float32
	MaxFluoride          optional.Float32
	MinSaturatedFat      optional.Float32
	MaxSaturatedFat      optional.Float32
	MinVitaminA          optional.Float32
	MaxVitaminA          optional.Float32
	MinVitaminC          optional.Float32
	MaxVitaminC          optional.Float32
	MinVitaminD          optional.Float32
	MaxVitaminD          optional.Float32
	MinVitaminE          optional.Float32
	MaxVitaminE          optional.Float32
	MinVitaminK          optional.Float32
	MaxVitaminK          optional.Float32
	MinVitaminB1         optional.Float32
	MaxVitaminB1         optional.Float32
	MinVitaminB2         optional.Float32
	MaxVitaminB2         optional.Float32
	MinVitaminB5         optional.Float32
	MaxVitaminB5         optional.Float32
	MinVitaminB3         optional.Float32
	MaxVitaminB3         optional.Float32
	MinVitaminB6         optional.Float32
	MaxVitaminB6         optional.Float32
	MinVitaminB12        optional.Float32
	MaxVitaminB12        optional.Float32
	MinFiber             optional.Float32
	MaxFiber             optional.Float32
	MinFolate            optional.Float32
	MaxFolate            optional.Float32
	MinFolicAcid         optional.Float32
	MaxFolicAcid         optional.Float32
	MinIodine            optional.Float32
	MaxIodine            optional.Float32
	MinIron              optional.Float32
	MaxIron              optional.Float32
	MinMagnesium         optional.Float32
	MaxMagnesium         optional.Float32
	MinManganese         optional.Float32
	MaxManganese         optional.Float32
	MinPhosphorus        optional.Float32
	MaxPhosphorus        optional.Float32
	MinPotassium         optional.Float32
	MaxPotassium         optional.Float32
	MinSelenium          optional.Float32
	MaxSelenium          optional.Float32
	MinSodium            optional.Float32
	MaxSodium            optional.Float32
	MinSugar             optional.Float32
	MaxSugar             optional.Float32
	MinZinc              optional.Float32
	MaxZinc              optional.Float32
	Offset               optional.Int32
	Number               optional.Int32
	LimitLicense         optional.Bool
}

type TalkToChatbotOpts

type TalkToChatbotOpts struct {
	ContextId optional.String
}

type VisualizeEquipmentOpts

type VisualizeEquipmentOpts struct {
	ContentType optional.String
	Accept      optional.String
}

type VisualizeIngredientsOpts

type VisualizeIngredientsOpts struct {
	ContentType optional.String
	Language    optional.String
	Accept      optional.String
}

type VisualizeMenuItemNutritionByIDOpts

type VisualizeMenuItemNutritionByIDOpts struct {
	DefaultCss optional.Bool
	Accept     optional.String
}

type VisualizePriceBreakdownOpts

type VisualizePriceBreakdownOpts struct {
	ContentType optional.String
	Accept      optional.String
	Language    optional.String
}

type VisualizeProductNutritionByIDOpts

type VisualizeProductNutritionByIDOpts struct {
	DefaultCss optional.Bool
	Accept     optional.String
}

type VisualizeRecipeEquipmentByIDOpts

type VisualizeRecipeEquipmentByIDOpts struct {
	DefaultCss optional.Bool
}

type VisualizeRecipeIngredientsByIDOpts

type VisualizeRecipeIngredientsByIDOpts struct {
	DefaultCss optional.Bool
	Measure    optional.String
}

type VisualizeRecipeNutritionByIDOpts

type VisualizeRecipeNutritionByIDOpts struct {
	DefaultCss optional.Bool
	Accept     optional.String
}

type VisualizeRecipeNutritionOpts

type VisualizeRecipeNutritionOpts struct {
	ContentType optional.String
	Accept      optional.String
	Language    optional.String
}

type VisualizeRecipePriceBreakdownByIDOpts

type VisualizeRecipePriceBreakdownByIDOpts struct {
	DefaultCss optional.Bool
}

type VisualizeRecipeTasteByIDOpts

type VisualizeRecipeTasteByIDOpts struct {
	Normalize optional.Bool
	Rgb       optional.String
}

type VisualizeRecipeTasteOpts

type VisualizeRecipeTasteOpts struct {
	Language    optional.String
	ContentType optional.String
	Accept      optional.String
	Normalize   optional.Bool
	Rgb         optional.String
}

type WineApiService

type WineApiService service

func (*WineApiService) GetDishPairingForWine

func (a *WineApiService) GetDishPairingForWine(ctx context.Context, wine string) (InlineResponse20044, *http.Response, error)

WineApiService Dish Pairing for Wine Find a dish that goes well with a given wine.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param wine The type of wine that should be paired, e.g. \"merlot\", \"riesling\", or \"malbec\".

@return InlineResponse20044

func (*WineApiService) GetWineDescription

func (a *WineApiService) GetWineDescription(ctx context.Context, wine string) (InlineResponse20046, *http.Response, error)

WineApiService Wine Description Get a simple description of a certain wine, e.g. \"malbec\", \"riesling\", or \"merlot\".

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param wine The name of the wine that should be paired, e.g. \"merlot\", \"riesling\", or \"malbec\".

@return InlineResponse20046

func (*WineApiService) GetWinePairing

func (a *WineApiService) GetWinePairing(ctx context.Context, food string, localVarOptionals *GetWinePairingOpts) (InlineResponse20045, *http.Response, error)

func (*WineApiService) GetWineRecommendation

func (a *WineApiService) GetWineRecommendation(ctx context.Context, wine string, localVarOptionals *GetWineRecommendationOpts) (InlineResponse20047, *http.Response, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL