Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 859 Bytes

README.md

File metadata and controls

57 lines (37 loc) · 859 Bytes

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 install

Usage

Configure your api and business tokens:

# config/initializers/phonify.rb
Phonify.configure do |config|
  config.api_key = 'TOKEN'
  config.business = 'BUSINESS TOKEN'
end

Send message

Phonify.send_message '+14560000000', 'As above, so below.'

Find messages

Single message

Phonify.message '4g_oYIXRP6hRrUO0t9C'

All messages

Phonify.messages

Returns array of messages

Errors

See Phonify API Errors.