exgrid v1.0.0 ExGrid.Bounces

Manage bounces

Link to this section Summary

Functions

get bounce count

get all bounces

get bounces with optional parameters

Link to this section Functions

Link to this function count(credentials)

get bounce count

Link to this function get(credentials)

get all bounces

Link to this function get(credentials, sdate)

get bounces 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.Bounces.get(credentials, %{start_date: “2014-7-10”, end_date: “2014-7-20”})

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

iex> ExGrid.Bounces.get(credentials, %{date: 1, limit: 1})

Link to this function remove(credentials, optional_parameters)

Remove a bounce

Examples

iex> ExGrid.Bounces.remove(credentials, %{email: “foobar@baz.com”})

iex> ExGrid.Bounces.remove(credentials, %{type: “soft”})