This is the client library for the Food Data Central API which is part of the Open Gov Data platform.
If available in Hex, the package can be installed
by adding fdc_ex
to your list of dependencies in mix.exs
:
def deps do
[
{:fdc_ex, "~> 0.1.0"}
]
end
FdcEx.fetch_one(1104067)
FdcEx.fetch_many([1104067,1104086,1104087])
FdcEx.search("Cheddar Cheese")
FdcEx.get_spec(:json)
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/fdc_ex.