README.rdoc in webficient-twilio-2.2.0 vs README.rdoc in webficient-twilio-2.3.0

- old
+ new

@@ -6,20 +6,17 @@ For an overview of the Twilio Gem and a sample use case, check out http://www.webficient.com/2009/06/22/hello-this-is-your-rails-app-calling-you. == Calling the Twilio REST API -First create a connection object: +First set your credentials by calling the connect method: - c = Twilio::Connection.new('my_twilio_sid', 'my_auth_token') + Twilio.connect('my_twilio_sid', 'my_auth_token') -Now instantiate other objects by passing in the connection: +Now call any of the Twilio classes: - call = Twilio::Call.new(c) - call.make('1234567890', '9876543210', 'http://mysite.com/connected_call') - - recording = Twilio::Recording.new(c) - recording.list + Twilio::Call.make('1234567890', '9876543210', 'http://mysite.com/connected_call') + Twilio::Recording.list == Responding to Twilio When Twilio calls your application URL, your response must use the Twilio Markup XML (http://www.twilio.com/docs/api_reference/TwiML/). The Twilio gem makes this very easy by providing a Twilio Verb class.