Skip to content

Instantly share code, notes, and snippets.

@gnarmis
Last active December 14, 2015 17:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnarmis/5125884 to your computer and use it in GitHub Desktop.
Save gnarmis/5125884 to your computer and use it in GitHub Desktop.
Yummly API
(defn yummly-api [auth]
{:endpoint "http://api.yummly.com/v1"
:resources {:recipe-search "/api/recipes"}
:params ["q", "requirePictures", "allowedIngredient[]", "excludedIngredient[]",
"allowedDiet[]", "allowedAllergy[]", "allowedCuisine[]",
"allowedCourse[]", "allowedHoliday[]", "excludedCuisine[]",
"excludedCourse[]", "excludedHoliday[]", "maxTotalTimeInSeconds",
"nutrition.ATTR.{min|max}", "maxResult", "start",
"flavor.ATTR.{min|max}", "facetField[]"]
:auth {"_app_id" (:app-id auth),
"_app_key" (:app-key auth)}
:schemas {:nutrition {"K" "Potassium",
"NA" "Sodium",
"CHOLE" "Cholestrol",
"FATRN" "Fatty acids, total trans",
"FASAT" "Fatty acides, total saturated",
"CHOCDF" "Carbohydrate, by difference",
"FIBTG" "Fiber, total dietary",
"PROCNT" "Protein",
"VITC" "Vitamin C",
"CA" "Calcium",
"FE" "Iron",
"SUGAR" "Sugars, total",
"ENERC_KCAL" "Energy",
"FAT" "Total lipid",
"VITA_IU" "Vitamin A, IU"}
:flavor ["sweet", "meaty", "sour", "bitter", "sweet", "piquant"]}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment