FdcEx (fdc-ex v0.1.0) View Source
Documentation for FdcEx.
Link to this section Summary
Functions
Fetches details for multiple food items using input FDC IDs
Fetches details for one food item by FDC ID
Returns a paged list of foods, in the 'abridged' format
Returns a list of foods that matched search (query) keywords
Link to this section Functions
Fetches details for multiple food items using input FDC IDs
Specs
fetch_one(any(), any(), any()) :: {:error, HTTPoison.Error.t()} | {:ok, %{ :__struct__ => HTTPoison.AsyncResponse | HTTPoison.Response, optional(:body) => any(), optional(:headers) => list(), optional(:id) => reference(), optional(:request) => HTTPoison.Request.t(), optional(:request_url) => any(), optional(:status_code) => integer() }}
Fetches details for one food item by FDC ID
Link to this function
fetch_pages(data_type \\ [], page_size \\ 50, page_number \\ 1, sort_by \\ "", sort_order \\ "")
View SourceReturns a paged list of foods, in the 'abridged' format
Specs
Link to this function
search(query, data_type \\ [], page_size \\ 50, sort_by \\ "", sort_order \\ "", brand_owner \\ "")
View SourceSpecs
Returns a list of foods that matched search (query) keywords