File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
rest/taskrouter/twiml/example4/example Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22// Download the library and copy into the folder containing this file.
33require_once '/path/to/vendor/autoload.php ' ; // Loads the library
44
5- use Twilio \Twiml ;
5+ use Twilio \Twiml \ VoiceResponse ;
66
7- $ response = new Twiml ();
7+ $ response = new VoiceResponse ();
88$ response ->enqueue (
99 array (
1010 'workflowSid ' => 'WW0123456789abcdef0123456789abcdef ' ,
Original file line number Diff line number Diff line change 44// https://www.twilio.com/docs/libraries/php
55require_once '/path/to/vendor/autoload.php ' ;
66
7- use Twilio \Twiml ;
7+ use Twilio \Twiml \ VoiceResponse ;
88
9- $ response = new Twiml ();
9+ $ response = new VoiceResponse ();
1010$ response ->dial ()
1111 ->queue ('Queue Demo ' );
1212
Original file line number Diff line number Diff line change 44// https://www.twilio.com/docs/libraries/php
55require_once '/path/to/vendor/autoload.php ' ;
66
7- use Twilio \Twiml ;
7+ use Twilio \Twiml \ VoiceResponse ;
88
9- $ response = new Twiml ();
9+ $ response = new VoiceResponse ();
1010$ response ->enqueue ('Queue Demo ' );
1111
1212echo $ response ;
You can’t perform that action at this time.
0 commit comments