lib/twilio/call.rb in twilio-2.4.1 vs lib/twilio/call.rb in twilio-2.5.0
- old
+ new
@@ -16,9 +16,13 @@
def get(call_sid)
Twilio.get("/Calls/#{call_sid}")
end
+ def redirect(call_sid, new_url, url_action = 'POST')
+ Twilio.post("/Calls/#{call_sid}", :body => {:CurrentUrl => new_url, :CurrentMethod => url_action})
+ end
+
def segments(call_sid, call_segment_sid = nil)
Twilio.get("/Calls/#{call_sid}/Segments#{ '/' + call_segment_sid if call_segment_sid }")
end
def recordings(call_sid)
\ No newline at end of file