/nexmo-ruby-code-snippets

Ruby code examples for working with Nexmo

Primary LanguageRubyMIT LicenseMIT

Nexmo Quickstart Examples for Ruby

Nexmo is now known as Vonage

❗ This repository moved! It is now located at Vonage/vonage-ruby-code-snippets.

Quickstarts also available for: Java, .NET, Node.js, PHP, Python

The purpose of the quickstart guide is to provide simple examples focused on one goal. For example, sending an SMS, handling an incoming SMS webhook, making a Text to Speech call.

Note: The code snippets inside this repository are best viewed within the context of the Nexmo Developer Platform. Within the platform each snippet is shown with its dependency requirements and installation instructions. For example, see the Connect Callers into a Conference Ruby Code Snippet.

Setup

To use this sample you will first need a Nexmo account. Then 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.

Running the Examples

Run the examples using the following replacing /path/to/example.rb with a path to a real file:

ruby /path/to/example.rb

Request an Example

Please raise an issue to request an example that isn't present within the quickstart. Pull requests will be gratefully received.

License

MIT