Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

RevoTechnology/rapporto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rapporto

Library to communicate with Mobile Finance Management Solutions

Installation

Add this line to your application's Gemfile:

$ gem 'rapporto'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rapporto

Usage

Define settings:

Rapporto::SMS.settings = {
  :server   => 'lk.rapporto.ru',
  :port     => 9002,
}

Initialize sms:

sms = Rapporto::SMS.new('phone','title','text') # initialize sms
sms = Rapporto::SMS.new('phone','title','text') # last parameter overrides 'translit' option

Send it and get sent sms id and dispatch code:

sms.send # send sms. returns sms id or dispatch code if something went wrong
sms.id # get sms id

Ex.:

sms = Rapporto::SMS.new('79031111111','MyFavouriteCompany','Testing rapporto gem')
sms.send # => 1032
sms.id # => 1032

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages