Skip to content

Commit 3ae070d

Browse files
committed
Fix bug in FoodSearch
1 parent b5ddc43 commit 3ae070d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/MethodDefinitions.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ setMethod("get_food_info", signature("FoodSearch"),
2020

2121
#return(httr::add_headers(`api_key` = object@api_key))
2222

23-
res_response<-httr::POST(paste0("https://api.nal.usda.gov/fdc/v1/?api_key=",
23+
res_response<-httr::POST(paste0("https://api.nal.usda.gov/fdc/v1/search/?api_key=",
2424
get_api_key()),
2525
body = search_query_list, encode = "json",
2626
httr::add_headers("Content-Type"="application/json"))

0 commit comments

Comments
 (0)