Skip to content

danj3/twilex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twilex

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

Install

If available in Hex, the package can be installed as:

  1. Add twilex to your list of dependencies in mix.exs:

    def deps do [{:twilex, "~> 0.0.1"}] end

  2. 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"

Send Messages

 Twilex.Messenger.create("from_number", "to_number", "body_text", "optional_media_url")
 
 i.e.
 
 iex(1)> Twilex.Messenger.create("15005550006", "15005550001", "test text")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 100.0%