docs/usage/recordings.rst in twilio-ruby-3.14.2 vs docs/usage/recordings.rst in twilio-ruby-3.14.3
- old
+ new
@@ -34,14 +34,15 @@
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
@client.recordings.list().each do |recording|
- puts recording.duration
+ puts recording.duration
+ end
You can filter recordings by CallSid by passing the Sid as :attr:`call`.
-Filter recordings using :attr:`before` and :attr:`after` dates.
+Filter recordings using :attr:`DateCreated<` and :attr:`DateCreated>` dates.
The following will only show recordings made before January 1, 2011.
.. code-block:: ruby
@@ -50,14 +51,14 @@
# 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|:
- puts recording.duration
+ @client.recordings.list('DateCreated<' => '2011-01-01').each do |recording|
+ puts recording.duration
+ end
-
Deleting Recordings
---------------------
The :class:`Recordings` resource allows you to delete unnecessary recordings.
@@ -90,7 +91,8 @@
@client = Twilio::REST::Client.new account_sid, auth_token
@recording = @client.recordings.get("RC123")
@recording.transcriptions.list().each do |transcription|
- puts transcription.transcription_text
+ puts transcription.transcription_text
+ end