docs/usage/recordings.rst in twilio-ruby-3.11.0 vs docs/usage/recordings.rst in twilio-ruby-3.11.1
- old
+ new
@@ -33,11 +33,11 @@
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
- @client.recordings.list().each do |recording|
+ @client.account.recordings.list().each do |recording|
puts recording.duration
You can filter recordings by CallSid by passing the Sid as :attr:`call`.
Filter recordings using :attr:`before` and :attr:`after` dates.
@@ -50,11 +50,11 @@
# To find these visit https://www.twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
- @client.recordings.list(before=date(2011,1,1)).each do |recording|:
+ @client.account.recordings.list(before=date(2011,1,1)).each do |recording|:
puts recording.duration
Deleting Recordings
---------------------
@@ -68,11 +68,11 @@
# To find these visit https://www.twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
- @client.recordings.get("RC123").delete()
+ @client.account.recordings.get("RC123").delete()
Accessing Related Transcptions
-------------------------------
@@ -87,10 +87,10 @@
# To find these visit https://www.twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
- @recording = @client.recordings.get("RC123")
+ @recording = @client.account.recordings.get("RC123")
@recording.transcriptions.list().each do |transcription|
puts transcription.transcription_text