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