Simple Elixir library for sending SMS's via Enterprise Connector
An Elixir library for sending SMS’s concurrently via Enterprise Connector
This library allows you to use the power of elixir’s processes and supervision trees
to send SMS’s efficiently.
All message requests will be executed as an elixir Task which is part of a dynamic supervision tree.
Each message request is attached to its own process, meaning you can send
thousands of messages concurrently and efficiently.
Send SMS
message = "Hello, World"
mobile = "+2449415955212"
options = %{:api_key => System.get_env("EC_API_KEY")}
Connector.send_sms(message, mobile, options)
Get all SMS
options = %{:api_key => System.get_env("EC_API_KEY")}
Connector.get_all_sms(options)
Add connector
to your list of dependencies in mix.exs
:
def deps do
[
{:connector, "~> 0.1.1"}
]
end
Visit hex.docs to see documentation.
Copyright © 2020 Alexandre Juca corextechnologies@gmail.com
This work is free. You can redistribute it and/or modify it under the
terms of the MIT License. See the LICENSE file for more details.