Skip to content

Commit 0d1d57c

Browse files
author
Craig Dennis
committed
More Twiml replacements with VoiceResponse
1 parent c222874 commit 0d1d57c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

rest/taskrouter/twiml/example4/example/example.5.x.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// Download the library and copy into the folder containing this file.
33
require_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',

voice/queueing/agent/queue-agent.5.x.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
// https://www.twilio.com/docs/libraries/php
55
require_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

voice/queueing/caller/queue-caller.5.x.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
// https://www.twilio.com/docs/libraries/php
55
require_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

1212
echo $response;

0 commit comments

Comments
 (0)