docs/usage/basics.rst in twilio-ruby-3.12.1 vs docs/usage/basics.rst in twilio-ruby-3.12.2
- old
+ new
@@ -41,11 +41,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
- @calls = @client.account.calls.list()
+ @calls = @client.calls.list()
:meth:`ListResource.list` accepts paging arguments.
The following will return page 3 with page size of 25.
.. code-block:: ruby
@@ -55,11 +55,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
- @calls = @client.account.calls.list(:page=>3, :page_size=>25)
+ @calls = @client.calls.list(:page=>3, :page_size=>25)
Get an Individual Resource
-----------------------------
@@ -74,11 +74,11 @@
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
- @call = @client.account.calls.get("CA123")
+ @call = @client.calls.get("CA123")
puts @call.to
Deleting a Resource
-------------------------------
@@ -95,8 +95,8 @@
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
- @recording = @client.account.recordings.get("RC123")
+ @recording = @client.recordings.get("RC123")
@recording.delete()