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
- Host: GitHub
- URL: https://github.com/tiagopog/ziad-ex
- Owner: tiagopog
- Created: 2018-09-15T05:38:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-31T03:00:57.000Z (over 7 years ago)
- Last Synced: 2025-03-05T16:47:14.954Z (over 1 year ago)
- Topics: elixir, shortcode, sms, ziad
- Language: Elixir
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"}])
```