Project

sms_ru

0.0
No commit activity in last 3 years
No release in over 3 years
Gem to send SMS via sms.ru service
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 1.0.2
 Project Readme

SmsRu

Send SMS via sms.ru service, including support for "stronger auth" API

Installation

Add this line to your application's Gemfile:

gem 'sms_ru'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sms_ru

Usage

Usage from console

Write file .sms_ru_settings in you home dir with contents:

api_id = aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
from = 123456789

where aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee is you api_id key; 123456789 - sender of sms. It will show in sms. Your number or any allowed alias on service.

After that usage as simple as

sms 123456789 'my text message'

where 12345689 - receipient of sms

Usage in source code

sms = SmsRu::SMS.new(:api_id => "aaaaaaaaaa-bbbb-ccccc-ddddddd")
sms.send(:to => "123123123", :from => "321321321", :text => "Hello world")

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request