ex_messagebird v0.1.0 ExMessagebird.Backend.Behaviour behaviour

Implement this behaviour for custom backends.

Link to this section Summary

Link to this section Types

Link to this type

send_message_options()

send_message_options() :: %{
  originator: String.t(),
  scheduledDateTime: String.t(),
  validity: integer(),
  datacoding: :plain | :auto | :unicode,
  body: String.t(),
  recipients: String.t()
}

Link to this section Callbacks

Link to this callback

send_message(arg1)

send_message(ExMessagebird.Backend.Behaviour.send_message_options()) ::
  {:ok, ExMessagebird.SMS.Message.t()} | {:error, :invalid_response}