Module for handling the IBGE Calendar API (v3) — Calendário de Divulgações.
Provides access to the IBGE release calendar, including scheduled and past releases of surveys and publications.
Query Parameters
Both all/1 and by_research/2 accept the following options:
:quantity(:qtd) — number of items per page (default: 10).:from(:de) — start date filter inddMMyyyyformat.:to(:ate) — end date filter inddMMyyyyformat.
Examples
# Get upcoming releases
ExIbge.Calendar.all()
# Get releases for a specific research
ExIbge.Calendar.by_research(9173)
# With date filters
ExIbge.Calendar.all(from: "01012024", to: "31122024", quantity: 5)
Summary
Functions
Get the calendar of releases.
Same as all/1, but raises on failure.
Get the calendar of releases for a specific research.
Same as by_research/2, but raises on failure.
Functions
Get the calendar of releases.
Parameters
query— optional keyword list of query parameters (see module docs).
Examples
iex> ExIbge.Calendar.all()
{:ok, %{count: 100, page: 1, total_pages: 10, items: [%ExIbge.Calendar.Release{}, ...]}}See Also
Same as all/1, but raises on failure.
Get the calendar of releases for a specific research.
Parameters
research_id— the research identifier.query— optional keyword list of query parameters (see module docs).
Examples
iex> ExIbge.Calendar.by_research(9173)
{:ok, %{count: 10, page: 1, total_pages: 1, items: [%ExIbge.Calendar.Release{}, ...]}}See Also
Same as by_research/2, but raises on failure.