lib/tropo-webapi-ruby/tropo-webapi-ruby.rb
def start_recording(params={})
      if block_given?
        create_nested_hash('start_recording', params)
        instance_exec(&block)
        @response[:tropo] << @nested_hash
        @nested_hash = nil
        @nested_name = nil
      else
        hash = build_action('start_recording', params)
        @response[:tropo] << hash
      end
      render_response if @building.nil?
    end
##
# Allows Tropo applications to begin recording the current session. 
# The resulting recording may then be sent via FTP or an HTTP POST/Multipart Form.
#
# @param [Hash] params the options to create a message with.
# @option params [optional, Boolean] :asyncUpload (false) instruct Tropo to upload the recording file in the background as soon as the recording is completed
# @option params [required, String] :url a valid URI, an HTTP, FTP or email address to POST the recording file to
# @option params [optional, String] :format (audio/wav) the audio format to record in, either a wav or mp3
# @option params [optional, String] :username if posting to FTP, the username for the FTP server
# @option params [optional, String] :password if posting to FTP, the password for the FTP server
# @option params [optional, String] :transcriptionEmailFormat specifies the encoding used when delivering transcriptions via e-mail
# @option params [optional, String] :transcriptionID determines user definable ID that can be included when the transcription is posted to transcriptionOutURI
# @option params [optional, String] :transcriptionOutURI determines to anything enables transcription on this recording
# @option params [optional, String] :method (POST) defines how to send the audio file - values are POST or PUT and applies only to HTTP
# @return [String, nil] returns the JSON string to start the recording of a session or nil
#   if the method has been called from inside a block
Allows Tropo applications to begin recording the current session.
The resulting recording may then be sent via FTP or an HTTP POST/Multipart Form.
Allows Tropo applications to begin recording the current session . The resulting recording may then be sent via FTP or an HTTP POST / Multipart Form .
def start_recording(params={})
      if block_given?
        create_nested_hash('start_recording', params)
        instance_exec(&block)
        @response[:tropo] << @nested_hash
        @nested_hash = nil
        @nested_name = nil
      else
        hash = build_action('start_recording', params)
        @response[:tropo] << hash
      end
      render_response if @building.nil?
    end
def start_recording ( params = { } ) if block_given? create_nested_hash ( 'start_recording' , params ) instance_exec ( & block ) @response [ :tropo ] << @nested_hash @nested_hash = nil @nested_name = nil else hash = build_action ( 'start_recording' , params ) @response [ :tropo ] << hash end render_response if @building . nil? end
Allows Tropo applications to begin recording the current session.
Allows Tropo applications to begin recording the current session .
returns the JSON string to start the recording of a session or nil if the method has been called from inside a block
returns the JSON string to start the recording of a session or nil if the method has been called from inside a block
String, nil
params
:method (POST) defines how to send the audio file - values are POST or PUT and applies only to HTTP
: method ( POST ) defines how to send the audio file - values are POST or PUT and applies only to HTTP
params the options to create a message with.
params the options to create a message with .