Skip to content

A collection of self-contained, quickstart examples demonstrating how to integrate the Vonage Ruby SDK’s core APIs within a single Rails application. Perfect for exploring and prototyping Vonage features.

Notifications You must be signed in to change notification settings

Vonage-Community/sample-messages-ruby_on_rails-quickstart

Repository files navigation

Vonage APIs Quickstart Examples for Ruby on Rails


The purpose of the quickstart guide is to provide simple examples, each focused on one goal. For example, sending an SMS, making a Text to Speech call, or sending an image in WhatsApp. All using Vonage APIs.

Configure with Your Vonage API Keys


To use this sample you will first need a Vonage account. Once you have your own API credentials, rename the .env.example file to .env and set the values as required.

For some of the examples you will need to buy a number.

Setup


git clone [email protected]:Vonage-Community/sample-messages-ruby_on_rails-quickstart.git
cd sample-messages-ruby_on_rails-quickstart
cp .env.example .env
bundle install
rails db:create db:migrate
rails s

Tutorials & Sample Code

SMS


Tutorial Code Sample
How to Send SMS Messages with Ruby on Rails outbound_sms_controller.rb
Receive an SMS Message Status with Ruby on Rails sms_message_status_controller.rb
How to Receive SMS Messages with Ruby on Rails inbound_sms_controller.rb

Voice


Tutorial Code Sample
How to Make an Outbound Text-to-Speech Phone Call with Rails outbound_calls_controller.rb
How to receive an Call Event webhook with Ruby on Rails call_events_controller.rb
How to Handle Inbound Phone Calls with Ruby on Rails inbound_calls_controller.rb

RCS


Tutorial Code Sample
How to Send RCS Suggested Reply Messages with Ruby on Rails outbound_rcs_controller.rb
Receive an RCS Message Status with Ruby on Rails rcs_message_status_controller.rb
How to Receive RCS Reply Messages with Ruby on Rails inbound_rcs_controller.rb

WhatsApp


Tutorial Code Sample
How to Send WhatsApp Messages with Ruby on Rails outbound_whatsapp_controller.rb
How to Receive WhatsApp Messages with Ruby on Rails inbound_whatsapp_controller.rb

Request More Examples


For help with the code or to request an example not listed here, please join the Vonage Community Slack. Feedback and requests are highly appreciated!

Licenses


  • The code samples in this repo is under MIT

  • The tutorials contents are under Creative Commons, CC-BY-SA 4.0

About

A collection of self-contained, quickstart examples demonstrating how to integrate the Vonage Ruby SDK’s core APIs within a single Rails application. Perfect for exploring and prototyping Vonage features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published