Releases
v2.0.0
Enhancements
Switch from using HTTPoison
to using Tesla
Switch from using Poison
to Jason
for JSON serialization
SendGrid.Email
is now responsible for configuring its own JSON serialization
An API key can be set manually for any API call as a keyword option, bypassing
the need for a global API key
An API key can be set with the {:system, "ENV_VAR"}
to use values at runtime
Add dialyzer for validing typespecs
Add support for dynamic template data
Add struct for handling Contact Recipient encoding
Working config added for testing
Add support for multiple personalizations in a single sent Email request
Bug Fixes
Typespecs are now correct
Breaking Changes
SendGrid.Mailer
has been renamed to SendGrid.Mail
to better reflect the
actual shape of SendGrid's API structure
SendGrid.Contacts.Recipients.add
now requires a recipient to be built with
SendGrid.Contacts.Recipient.build/2
SendGrid.Contacts.Lists.add
returns {:ok, map()}
instead of {:ok, integer()}
.
You can’t perform that action at this time.