README.md

# Twilixir [![Build Status](https://www.travis-ci.org/CasperSleep/twilixer.svg?branch=master)](https://www.travis-ci.org/CasperSleep/twilixer)

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

## Install

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

```elixir
def deps do
  [{:twilixir, "~> 1.0.0"}]
end
```

2. Ensure twilixir is started before your application:

```elixir
def application do
  [applications: [:twilixir]]
end
```

## Configure

Add the following to your `config.exs` file:

```elixir
config :twilixir,
  sid: "YOUR_TWILIO_SID",
  token: "YOUR_TWILIO_AUTH_TOKEN"
```

## Send Messages

```elixir
Twilixir.Messenger.create("from_number", "to_number", "body_text", "optional_media_url")

# e.g. Twilixir.Messenger.create("15005550006", "15005550001", "test text")
```