tiagopog / ziad-ex

Elixir lib to send short code SMS' via Ziad API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZiadEx

Elixir client library to deliver short code SMS messages via Ziad.

Installation

If available in Hex, the package can be installed by adding ziad_ex to your list of dependencies in mix.exs:

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

Usage

Single send:

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

Bulk send:

%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"}])

About

Elixir lib to send short code SMS' via Ziad API


Languages

Language:Elixir 100.0%