Sha256: 535a57e690c418e647d945a54bcb863218287ee5cbe5dd19394d1393c1b59b65

Contents?: true

Size: 770 Bytes

Versions: 5

Compression:

Stored size: 770 Bytes

Contents

module Twilio
  # Recordings are generated when you use the Record Verb. Those recordings are 
  # hosted on Twilio's REST API for you to access. 
  # Example:
  #   Twilio.connect('my_twilio_sid', 'my_auth_token')
  #   Twilio::Recording.list
  class Recording < TwilioObject    
    def list(opts = {})
      Twilio.get("/Recordings", :query => (opts.empty? ? nil : opts))  
    end
    
    def get(recording_sid)
      Twilio.get("/Recordings/#{recording_sid}")  
    end
    
    def delete(recording_sid)
      Twilio.delete("/Recordings/#{recording_sid}")
    end
    
    def transcriptions(recording_sid, transcription_sid = nil)
      Twilio.get("/Recordings/#{recording_sid}/Transcriptions#{ '/' + transcription_sid if transcription_sid }") 
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
twilio-3.1.1 lib/twilio/recording.rb
twilio-3.1.0 lib/twilio/recording.rb
slayer-twilio-3.0.1 lib/twilio/recording.rb
twilio-3.0.1 lib/twilio/recording.rb
twilio-3.0.0 lib/twilio/recording.rb