Class: TropoREST::Troplets
Constant Summary
Constants inherited from API
Class Method Summary collapse
Methods inherited from API
fire_event, options_with_token, originate, request
Class Method Details
.say(to, message, options = {}) ⇒ Object
79 80 81 82 83 84 85 |
# File 'lib/tropo-rest.rb', line 79 def say(to, , = {}) logger.debug "Using Troplets to say #{} to #{to}" .merge! to: to, message: resp = request '/say', , [:channel] == :voice ? :voice : :messaging logger.debug "Troplet#say responded with: #{resp.inspect}" resp end |