All Projects → johnhamelink → sms_blitz

johnhamelink / sms_blitz

Licence: MIT license
Send SMS messages through multiple different providers

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to sms blitz

plivo
This package enables to send message or OTP to any mobile.This package uses external plivo api.
Stars: ✭ 20 (-31.03%)
Mutual labels:  twilio, plivo
human-call-filter
Captcha for phone calls
Stars: ✭ 41 (+41.38%)
Mutual labels:  twilio, telephony
sms
Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5(Updated to work with Laravel 5.5).Currently supported Gateways Clickatell, MVaayoo, Gupshup, SmsAchariya, SmsCountry, SmsLane, Nexmo, Mocker / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.
Stars: ✭ 41 (+41.38%)
Mutual labels:  sms-api, sms-messages
somleng
Open Source Implementation of Twilio's REST API
Stars: ✭ 33 (+13.79%)
Mutual labels:  twilio, telephony
Twilio Csharp
Twilio C#/.NET Helper Library for .NET Framework 3.5+ and supported .NET Core versions
Stars: ✭ 541 (+1765.52%)
Mutual labels:  twilio, telephony
Twilio Java
A Java library for communicating with the Twilio REST API and generating TwiML.
Stars: ✭ 371 (+1179.31%)
Mutual labels:  twilio, telephony
fonoster
🚀 The open-source alternative to Twilio
Stars: ✭ 5,072 (+17389.66%)
Mutual labels:  twilio, telephony
Fonos
🚀 The open-source alternative to Twilio
Stars: ✭ 3,785 (+12951.72%)
Mutual labels:  twilio, telephony
pindo-cli
A simple Command Line Interface that allows you to authenticate with the Pindo API.
Stars: ✭ 32 (+10.34%)
Mutual labels:  sms-api, sms-messages
shlinked
An open-source satirical social network. shlinkedin.com
Stars: ✭ 287 (+889.66%)
Mutual labels:  phoenix
phoenix passwordless login
Phoenix Passwordless Login
Stars: ✭ 28 (-3.45%)
Mutual labels:  phoenix
VaporTwilioService
Twilio API provider for all your Vapor needs
Stars: ✭ 19 (-34.48%)
Mutual labels:  twilio
Tai-Shang-Combiner
太上老君,基于 Elixir 的 NFT 炼丹炉
Stars: ✭ 16 (-44.83%)
Mutual labels:  phoenix
useful-twilio-functions
A set of useful Twilio Functions.
Stars: ✭ 53 (+82.76%)
Mutual labels:  twilio
fregata
A self hosted REST API for message delivery
Stars: ✭ 19 (-34.48%)
Mutual labels:  twilio
phoenix-queryserver
Apache Phoenix Query Server
Stars: ✭ 33 (+13.79%)
Mutual labels:  phoenix
zero-to-graphql-using-elixir
The purpose of this example is to provide details as to how one would go about using GraphQL with the Elixir Language.
Stars: ✭ 20 (-31.03%)
Mutual labels:  phoenix
FreePhone
FreePhone es un proyecto de investigación sobre privacidad en dispositivos móviles. Con este repositorio pretendemos liberar toda la experiencia acumulada durante la creación de un smartphone casero.
Stars: ✭ 57 (+96.55%)
Mutual labels:  telephony
hackathons
A collection of tips and tricks for using Twilio at hackathons
Stars: ✭ 35 (+20.69%)
Mutual labels:  twilio
Oreka
Enterprise telephony recording and retrieval system with web based user interface.
Stars: ✭ 20 (-31.03%)
Mutual labels:  telephony

SmsBlitz

Build Status

SmsBlitz is a library for elixir that allows you to send SMS messages through multiple different providers.

SmsBlitz provides a generic behaviour to make it easy to write conforming client libraries, while also making it simple for developers to choose which provider to use (you could use ex_phone_number to detect the destination country and use the cheapest provider for that country, for example).

Installation

If available in Hex, the package can be installed as:

  1. Add sms_blitz to your list of dependencies in mix.exs:
        def deps do
          [{:sms_blitz, "~> 0.1.1"}]
        end
  1. Ensure sms_blitz is started before your application:
        def application do
          [applications: [:sms_blitz]]
        end

Setup

Setting up with SmsBlitz is easy. You simply add the authentication details for the providers you want to use into to your config:

config :sms_blitz, plivo: {"api_token", "api_key"}
config :sms_blitz, itagg: {"username", "password", "route"}
config :sms_blitz, twilio: {"account_sid", "auth_token"}
config :sms_blitz, nexmo: {"account_key", "account_secret"}

You can find out which adapters are available like so (note that the list of adapters is not the same as the list of adapters which has been configured correctly!):

SmsBlitz.adapters
# [:plivo, :itagg, :twilio, :nexmo]

Then you can send the SMS to the provider as simply as this:

SmsBlitz.send_sms(:adapter, from: "Johnny", to: "07123456789", message: "Here's Johnny!")

Where :adapter is the adapter you've chosen from the list.

The output of the send_sms/2 command above will either be like:

%{
  id: "id here",
  result_string: "Things went well",
  status_code: "1337"
}

Or an Array of maps formatted as above. It's important that you handle both types of responses!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].