Sha256: 9d9b9255e9289a1a95996e60cfbae4acf941ca89cbcf510171750d3de8fdced7

Contents?: true

Size: 756 Bytes

Versions: 11

Compression:

Stored size: 756 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(optional = {})
      Twilio.get("/Recordings", :query => optional)  
    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

11 entries across 11 versions & 3 rubygems

Version Path
dancroak-twilio-2.3.1 lib/twilio/recording.rb
webficient-twilio-2.3.0 lib/twilio/recording.rb
webficient-twilio-2.4.0 lib/twilio/recording.rb
twilio-2.9.0 lib/twilio/recording.rb
twilio-2.8.0 lib/twilio/recording.rb
twilio-2.7.0 lib/twilio/recording.rb
twilio-2.6.0 lib/twilio/recording.rb
twilio-2.5.0 lib/twilio/recording.rb
twilio-2.4.1 lib/twilio/recording.rb
twilio-2.4.0 lib/twilio/recording.rb
twilio-2.3.0 lib/twilio/recording.rb