lib/twilio/call.rb in twilio-2.8.0 vs lib/twilio/call.rb in twilio-2.9.0
- old
+ new
@@ -4,11 +4,11 @@
# initiates the call, either via the REST API, or during a call via the Dial Verb.
class Call < TwilioObject
# Example:
# Twilio.connect('my_twilio_sid', 'my_auth_token')
# Twilio::Call.make(CALLER_ID, user_number, 'http://myapp.com/twilio_response_handler')
- def make(caller, called, url, optional = {})
- Twilio.post("/Calls", :body => {:Caller => caller, :Called => called, :Url => url}.merge(optional))
+ def make(from, to, url, optional = {})
+ Twilio.post("/Calls", :body => {:From => from, :To => to, :Url => url}.merge(optional))
end
def list(optional = {})
Twilio.get("/Calls", :query => optional)
end
\ No newline at end of file