Skip to content

hisea/twilex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twilex

Twilex is an Elixir Client to send SMS/MMS using Twilio.

Install

  1. Add twilex to your list of dependencies in mix.exs:
def deps do
  [{:twilex, "~> 0.0.1"}]
end
  1. Ensure twilex is started before your application:
def application do
  [applications: [:twilex]]
end

Configure

Add the following to your config.exs file:

config :twilex,
  sid: "YOUR_TWILIO_SID",
  token: "YOUR_TWILIO_AUTH_TOKEN"

Usage

 # Twilex.Messenger.send_sms("from_number", "to_number", "body_text", "optional_media_url")
 iex(1)> Twilex.Messenger.send_sms("15005550006", "15005550001", "test text", "https://github.com")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages