exgrid v0.4.0 ExGrid.Statistics

Fetch statistics

Summary

Functions

get all categories

get all stats

get stats with optional parameters

Functions

categories(credentials)

get all categories

get(credentials)

get all stats

get(credentials, sdate)

get stats with optional parameters

  • see sendgrid api docs

  • note for start_date and end_date they must be in YYYY-M-D string format

Examples:

iex> ExGrid.Statistics.get(credentials, %{start_date: “2014-7-10”, end_date: “2014-7-20”})

iex> ExGrid.Statistics.get(credentials, %{days: “1”})

iex> ExGrid.Statistics.get(credentials, %{aggregate: 1, days: 1})