docs/usage/basics.rst in twilio-ruby-3.12.2 vs docs/usage/basics.rst in twilio-ruby-3.12.3
- old
+ new
@@ -25,9 +25,22 @@
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
+You can also configure the client using the top level configure method, like so:
+
+.. code-block:: ruby
+
+ require 'twilio-ruby'
+
+ Twilio.configure do |config|
+ config.account_sid = "ACXXXXXXXXXXXXXXXXX"
+ config.auth_token = "YYYYYYYYYYYYYYYYYY"
+ end
+
+ @client = Twilio::REST::Client.new
+
Listing Resources
-------------------
The :class:`Client` gives you access to various list resources.