Labirintti SMS Gateway HTTP Interface wrapper
Add this line to your application's Gemfile:
gem 'labyrintti'
And then execute:
$ bundle
Or install it yourself as:
$ gem install labyrintti
client = ::Labyrintti::SMS.new('user', 'password')
res = client.send_text(from: 'Alex', to: '123456789', text: 'Hello world!')
if res[:ok]
puts "Message was sent successfully!"
else
res[:errors].each do |error|
puts "Was an error #{error.inspect}"
end
endFor secure connection:
client = ::Labyrintti::SMS.new('user', 'password', {secure: true})- Fork it ( https://github.com/dotpromo/labyrintti/fork )
- 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 a new Pull Request