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.
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.
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
| 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 |
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!
-
The code samples in this repo is under MIT
-
The tutorials contents are under Creative Commons, CC-BY-SA 4.0