Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sms_factor

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sms_factor

  • 0.2.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

== SMS Factor

An easy way to use API SMS of http://www.smsfactor.com/ (http://www.smsfactor.com/api-sms/)

== Installation

You can install sms_factor by adding this line in your Gemfile :

gem 'sms_factor'

And then :

bundle install

== Configuration

To use this gem, configure SmsFactor using your API information :

SmsFactor::Init.configure do |config| config.api_url = 'http://api.smsfactor.com' config.api_login = '<your_email@your_company.com>' config.api_password = '<your_password>' config.api_default_from = '<a_default_sender_name>' end

== Use

To send a SMS :

r = SmsFactor.sms('Hello World', '336++++++++') # to a single recipient r = SmsFactor.sms('Hello World', ['336++++++++', '336++++++++', '336++++++++']) # to multiple recipients r = SmsFactor.sms('Hello World', '336++++++++', 'Toto') # to override default from

To retrieve your credit after the sms was sent :

r.credit

== Copyright

Copyright (c) 2015 Julien Séveno

FAQs

Package last updated on 27 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc