Class: Twilio::Recording
Overview
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
Instance Method Summary
collapse
#connected?, #initialize, method_missing
Instance Method Details
#delete(recording_sid) ⇒ Object
16
17
18
|
# File 'lib/twilio/recording.rb', line 16
def delete(recording_sid)
Twilio.delete("/Recordings/#{recording_sid}")
end
|
#get(recording_sid) ⇒ Object
12
13
14
|
# File 'lib/twilio/recording.rb', line 12
def get(recording_sid)
Twilio.get("/Recordings/#{recording_sid}")
end
|
#list(opts = {}) ⇒ Object
8
9
10
|
# File 'lib/twilio/recording.rb', line 8
def list(opts = {})
Twilio.get("/Recordings", :query => (opts.empty? ? nil : opts))
end
|
#transcriptions(recording_sid, transcription_sid = nil) ⇒ Object
20
21
22
|
# File 'lib/twilio/recording.rb', line 20
def transcriptions(recording_sid, transcription_sid = nil)
Twilio.get("/Recordings/#{recording_sid}/Transcriptions#{ '/' + transcription_sid if transcription_sid }")
end
|