exgrid v1.0.0 ExGrid.Statistics

Fetch statistics

Link to this section Summary

Functions

get all categories

get all stats

get stats with optional parameters

Link to this section Functions

Link to this function categories(credentials)

get all categories

Link to this function get(credentials)

get all stats

Link to this function 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})