Introduction
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.
Installation
Add gem to your Gemfile
gem 'phonify', github: 'pelcasandra/phonify-gem'Install the gem
bundle installUsage
Configure your api and business tokens:
# config/initializers/phonify.rb
Phonify.configure do |config|
config.api_key = 'TOKEN'
config.business = 'BUSINESS TOKEN'
endSend message
Phonify.send_message '+14560000000', 'As above, so below.'Find messages
Single message
Phonify.message '4g_oYIXRP6hRrUO0t9C'All messages
Phonify.messagesReturns array of messages
Errors
See Phonify API Errors.