mailjex v0.1.6 Mailjex.Contact
Exposes functions for managing contacts on MailJet.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
Allows you to create a contact on MailJet
Allows you to list contacts on MailJet
Allows you to manage what contact lists a given contact is on
Allows you to update a contact on MailJet
Allows you to view a contact on MailJet
Link to this section Functions
Link to this function
child_spec(arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
create(body)
Allows you to create a contact on MailJet
Examples
iex> body = %{
...> "Email": "contactemail@gmail.com",
...>}
iex> Mailjex.Contact.create(body)
Link to this function
list()
Allows you to list contacts on MailJet
Examples
iex> Mailjex.Contact.list()
Link to this function
manage_contacts_lists(id, body)
Allows you to manage what contact lists a given contact is on.
Examples
iex> body = %{
...> "ContactsLists": [%{"ListID": 1684490, "Action": "addnoforce"}],
...>}
iex> Mailjex.Contact.manage_contacts_lists(12345, body)
Link to this function
update(id, body)
Allows you to update a contact on MailJet
Examples
iex> body = %{
...> "Email": "contactemail@gmail.com",
...>}
iex> Mailjex.Contact.update("1234ID", body)
Link to this function
view(id)
Allows you to view a contact on MailJet
Examples
iex> Mailjex.Contact.view("1234ID")