Phonify gem is an easy way to send SMS and verify phone numbers with global coverage from your app.
More info on phonify.io/help.
gem 'phonify', github: 'pelcasandra/phonify-gem'
bundle install
Configure your api and business tokens:
# config/initializers/phonify.rb
Phonify.configure do |config|
config.api_key = 'TOKEN'
config.business = 'BUSINESS TOKEN'
end
Phonify.send_message '+14560000000', 'As above, so below.'
Single message
Phonify.message '4g_oYIXRP6hRrUO0t9C'
All messages
Phonify.messages
Returns array of messages
See Phonify API Errors.