A Ruby interface for Skebby Allows you to send SMS through Skebby SMS Gateway.
Add this line to your application's Gemfile:
gem 'skuby'
And then execute:
$ bundle
Or install it yourself as:
$ gem install skuby
Skuby.setup do |config|
config.method = 'send_sms_classic' #default
config.username = 'username'
config.password = 'password'
config.sender_string = 'company' #optional
config.sender_number = '39329900000' #optional
config.charset = 'UTF-8' #skebby default is ISO-8859-1
end
Put these lines in config/environments/production.rb
if you are using Skuby in Rails.
Use international phone numbers without +, e.g. (for Italy) 393290000000
sms = Skuby::Gateway.send_sms('Lorem ipsum', '393290000000')
sms.success? #=> true
To retrieve your current balance in Euros:
Skuby::Credit.balance
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request