An open API service indexing awesome lists of open source software.

https://github.com/tiagopog/ziad-ex

Elixir lib to send short code SMS' via Ziad API
https://github.com/tiagopog/ziad-ex

elixir shortcode sms ziad

Last synced: 15 days ago
JSON representation

Elixir lib to send short code SMS' via Ziad API

Awesome Lists containing this project

README

          

# ZiadEx

Elixir client library to deliver short code SMS messages via [Ziad](http://smsads.com.br/).

## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `ziad_ex` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[
{:ziad_ex, "~> 0.1.0"}
]
end
```

## Usage

Single send:

```elixir
%ZiadEx.Credential{username: "foo", password: "bar", key: "baz"}
|> ZiadEx.send(to: "41999887766", message: "Join the army, they said")
```

Bulk send:

```elixir
%ZiadEx.Credential{username: "foo", password: "bar", key: "baz"}
|> ZiadEx.send([%{to: "41999887766", message: "Join the army, they said"}, %{to: "41999887766", message: "See the world, they said"}])
```