0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby wrapper for the Nexmo Voice(only) API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
>= 0
~> 3.0.0
~> 1.18.0

Runtime

>= 2.0.0, ~> 2.0
 Project Readme

Nexmo::Voice

A Ruby wrapper for the Nexmo Voice API.

Installation

Add this line to your application's Gemfile:

gem 'nexmo-voice'

And then execute:

$ bundle

Or install it yourself as:

$ gem install nexmo-voice

Usage

  # Initialize your client
  client = Nexmo::Voice::Client.new 'your_key', 'your_secret'
  # or initialize with read_timeout and open_timeout(default: 10 seconds)
  client = Nexmo::Voice::Client.new 'your_key', 'your_secret', read_timeout: 2, open_timeout: 2

  # Make a tts call with minimum options
  options = {
    to: 'recipient_number',
    text: 'Hello from gem.'
  }
  client.ttses.create options

Contributing

  1. Fork it ( https://github.com/fahchen/nexmo-voice/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request