infobip v0.1.4 Infobip

A simple Infobip REST API client for Elixir.

You can find the hex package here, and the docs here.

Usage

def deps do
  [{:infobip, "~> 0.1"}]
end

Then run $ mix do deps.get, compile to download and compile your dependencies.

Finally, add the :infobip application as your list of applications in mix.exs:

def application do
  [applications: [:logger, :infobip]]
end

You’ll need to set a few config parameters, take a look in the dev.exs.sample file for an example of what is required.

Then sending a text message is as easy as:

{:ok, pid} = Infobip.send("27820001111", "Test message")

You can optionally specify a message ID if you want to fetch delivery reports:

{:ok, pid} = Infobip.send("27820001111", "Test message", "123")

You need to pass a valid international mobile number to the send method.

To fetch a delivery report, just use the message ID you assigned in send/3:

Infobip.delivery_report("123")

Link to this section Summary

Functions

Fetches a text message delivery report

Sends a text message

Link to this section Functions

Link to this function delivery_report(message_id)
delivery_report(any()) :: Infobip.DeliveryReport.fetch_response()

Fetches a text message delivery report.

Sends a text message.

Link to this function send(recipient, message, message_id)