keylex v0.1.0 Keylex.Messenger behaviour View Source

Keylex.Messenger provides a behaviour for future and custom Messenger Implementations for example:

defmodule MyApp.Messenger do
  @behaviour Keylex.Messenger

  def send_message(from, to, body, code) do
    message = "use this code #{code} to #{body}"
    Twilex.Messenger.send_sms(from, to, message)
  end
end

Link to this section Summary

Link to this section Callbacks

Link to this callback send_message(arg0, arg1, arg2, arg3) View Source
send_message(String.t(), String.t(), String.t(), String.t()) :: :ok | :error