Skip to content

craigp/elixir-infobip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elixir-infobip

Build Status Coverage Status hex.pm version hex.pm downloads Inline docs

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.2"}]
end

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

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

Then sending a text message is as easy as:

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

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

:ok = 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")

TODO

  • Send text messages
  • Documentation
  • Fetch delivery reports
  • SMPP interface

About

An Infobip API client for Elixir

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages