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

mo_sms

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mo_sms

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

MoSms

A Ruby wrapper class for the SMS sending service API called MO-SMS located in Sweden. In order to use the service, you have to register an account. More information can be found on their site. The development of this gem has been done using MO-SMS's API specification found here

Installation

Add this line to your application's Gemfile:

gem 'mo_sms'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mo_sms

Usage

To fire the class just

sms = MoSms::SMSSender.new("your_username", "your_password")

To send a text sms, call the .send() method. Watch out for the Exceptions that can be thrown here :)

  • The first argument is the phone number to send the SMS to
  • The second one is the type of the message (Can be either :text or :wap)
  • The third argument is the content of the message
sms.send("072123123", :text, "This is my message")

Other attributes are added to the class (read the API specification) like...

sms.tariff = false #or true
sms.allow_long_message = false #or true
sms.custom_sender = false #or true

FAQs

Package last updated on 25 Jul 2014

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