Skip to content

Simple SMS sending for Elixir. Currently supports Twilio and Clickatell

Notifications You must be signed in to change notification settings

r11132a/ex_sms_simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExSMSSimple

Elixir library for simple sending of SMS messages via popular services.

Very simple, only supports sending message and receiving the success or error response from the service.

Depends on HTTPoison and Poison

Currently Supported Services -Twilio -Clickatell

Installation

Currently not available via hex.

def deps do
  [
    {:ex_sms_simple, github: "r11132a\ex_sms_simple", branch: "master"}
  ]
end

Usage

There are two interfaces.

First is via ExSMSSimple.send/3

# For Twilio
alias ExSMSSimple.Twilio

to = "+16265551212"
content = "Message from ExSMSSimple.Twilio!"

case ExSMSSimple.send(Twilio,to,content) do
  {:ok, twilio_success_map} -> # do something
  {:error, twilio_error_map} -> # do something else
end

Alternatly, one could go directly to

  ExSMSSimple.Twilio.send(to,content)

Clickatell works the same, just replace Twilio with Clickatell

About

Simple SMS sending for Elixir. Currently supports Twilio and Clickatell

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages