simple way to send sms using sms77 or any other short message api provider
A Ruby client library for [Sms77][more to come].
You will need a valid account with an api key to access the api endpoints
To install ruby_sms, run the following command:
gem install ruby_sms
Or if you are using bundler, add
gem 'ruby_sms', '~>1.0'
to your Gemfile
, and run bundle install
require "ruby_sms"
sms = RubySms.new(api_key: "1234123", user: "[email protected]")
response = sms.send(text: "your message", to: "+49178223", delay: false)
if response.success?
puts "Sms deliverd "
else
puts response.errors
end