项目作者: AlexJuca

项目描述 :
Simple Elixir library for sending SMS's via Enterprise Connector
高级语言: Elixir
项目地址: git://github.com/AlexJuca/connector-elixir-sdk.git
创建时间: 2020-11-14T13:04:14Z
项目社区:https://github.com/AlexJuca/connector-elixir-sdk

开源协议:

下载


Connector

An Elixir library for sending SMS’s concurrently via Enterprise Connector

Elixir CI

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.

Usage

Send SMS

  1. message = "Hello, World"
  2. mobile = "+2449415955212"
  3. options = %{:api_key => System.get_env("EC_API_KEY")}
  4. Connector.send_sms(message, mobile, options)

Usage

Get all SMS

  1. options = %{:api_key => System.get_env("EC_API_KEY")}
  2. Connector.get_all_sms(options)

Installation

Add connector to your list of dependencies in mix.exs:

  1. def deps do
  2. [
  3. {:connector, "~> 0.1.1"}
  4. ]
  5. end

Documentation

Visit hex.docs to see documentation.

License

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.