sendgrid v1.0.2 SendGrid.Contacts.Recipients

Module to interact with modifying contacts.

See SendGrid’s Contact API Docs for more detail.

Summary

Functions

Adds a contact to the contacts list available in Marketing Campaigns. At a minimum, an email address must provided. Additionaly, costom fields that have already been created can added as well

Functions

add(email_address, custom_fields \\ %{})

Specs

add(String.t, %{}) :: :ok | {:error, [String.t]}

Adds a contact to the contacts list available in Marketing Campaigns. At a minimum, an email address must provided. Additionaly, costom fields that have already been created can added as well.

{:ok, recipient_id} = add("test@example.com", %{ "name" => "John Doe" })

{:ok, recipient_id} = add("test@example.com")