exgrid v0.4.0 ExGrid.Bounces

Manage bounces

Summary

Functions

get bounce count

get all bounces

get bounces with optional parameters

Functions

count(credentials)

get bounce count

get(credentials)

get all bounces

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})

remove(credentials, optional_parameters)

Remove a bounce

Examples

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

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