View Source ImprovMX.Domains (ImprovMX v0.1.2)

Summary

Functions

Adding a new domain

Check if the MX entries are valid for a domain

Edit a domain by modifying the notification email or the whitelabel entries

Edit a domain by modifying the notification email or the whitelabel entries

Get the details of a domain

Retrieve a list of all your domains

Functions

Link to this function

add(name, params \\ %{})

View Source
@spec add(String.t(), params) :: {:ok, map()} | {:error, any()}
when params: %{
       optional(:notification_email) => String.t(),
       optional(:whitelabel) => String.t()
     }

Adding a new domain

@spec check(String.t()) :: {:ok, map()} | {:error, any()}

Check if the MX entries are valid for a domain

@spec delete(String.t()) :: {:ok, map()} | {:error, any()}

Edit a domain by modifying the notification email or the whitelabel entries

Link to this function

edit(name, params \\ %{})

View Source
@spec edit(String.t(), params) :: {:ok, map()} | {:error, any()}
when params: %{
       optional(:notification_email) => String.t(),
       optional(:whitelabel) => String.t()
     }

Edit a domain by modifying the notification email or the whitelabel entries

@spec get(String.t()) :: {:ok, map()} | {:error, any()}

Get the details of a domain

@spec list(params) :: {:ok, map()} | {:error, any()}
when params: %{
       optional(:q) => String.t(),
       optional(:is_active) => boolean(),
       optional(:limit) => integer(),
       optional(:page) => integer()
     }

Retrieve a list of all your domains