We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5ddc43 commit 3ae070dCopy full SHA for 3ae070d
R/MethodDefinitions.R
@@ -20,7 +20,7 @@ setMethod("get_food_info", signature("FoodSearch"),
20
21
#return(httr::add_headers(`api_key` = object@api_key))
22
23
- res_response<-httr::POST(paste0("https://api.nal.usda.gov/fdc/v1/?api_key=",
+ res_response<-httr::POST(paste0("https://api.nal.usda.gov/fdc/v1/search/?api_key=",
24
get_api_key()),
25
body = search_query_list, encode = "json",
26
httr::add_headers("Content-Type"="application/json"))
0 commit comments