Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit ab17fc8

Browse files
committed
Update namespace from Twiml to TwiML
Signed-off-by: Maria Bermudez <[email protected]>
1 parent 88746a3 commit ab17fc8

File tree

15 files changed

+22
-22
lines changed

15 files changed

+22
-22
lines changed

.phplint-cache

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ There're two kind of snippets we test:
9898
body may or may not has the parameters needed to update the resource
9999
according to the expected result.
100100

101-
- **Twiml snippets:**
102-
When running Twiml snippets, the snippets should print the `xml` result to the
101+
- **TwiML snippets:**
102+
When running TwiML snippets, the snippets should print the `xml` result to the
103103
standard output, so we can capture that output and compare it with the
104104
expected `xml` sample. We read this `/output/sample.xml` file which is
105105
placed in the same folder of the snippet.
@@ -132,7 +132,7 @@ testable:
132132
```
133133
134134
**Notes:**
135-
- For testing Twiml snippets the option available is:
135+
- For testing TwiML snippets the option available is:
136136
137137
```
138138
meta.json -> "test_output": true

rest/messages/generate-twiml-dynamic-sms/generate-twiml-dynamic-sms.5.x.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Get the PHP helper library from https://twilio.com/docs/libraries/php
33

44
require_once 'vendor/autoload.php'; // Loads the library
5-
use Twilio\Twiml\MessagingResponse;
5+
use Twilio\TwiML\MessagingResponse;
66

77
$response = new MessagingResponse;
88
$body = $_REQUEST['Body'];

rest/messages/generate-twiml-mms/generate-twiml-mms.5.x.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Get the PHP helper library from https://twilio.com/docs/libraries/php
33

44
require_once 'vendor/autoload.php'; // Loads the library
5-
use Twilio\Twiml\MessagingResponse;
5+
use Twilio\TwiML\MessagingResponse;
66

77
$response = new MessagingResponse;
88
$message = $response->message();

rest/messages/generate-twiml-sms-voice/example-1.5.x.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// this line loads the library
55
require('vendor/autoload.php');
6-
use Twilio\Twiml\VoiceResponse;
6+
use Twilio\TwiML\VoiceResponse;
77

88
$response = new VoiceResponse;
99
$response->say("Hello! You will get an SMS message soon.");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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\VoiceResponse;
5+
use Twilio\TwiML\VoiceResponse;
66

77
$response = new VoiceResponse();
88
$response->enqueue(null, ['workflowSid' => 'WW0123456789abcdef0123456789abcdef']);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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\VoiceResponse;
5+
use Twilio\TwiML\VoiceResponse;
66

77
$response = new VoiceResponse();
88
$response->enqueue(null, ["workflowSid" => "WW0123456789abcdef0123456789abcdef"])

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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\VoiceResponse;
5+
use Twilio\TwiML\VoiceResponse;
66

77
$response = new VoiceResponse();
88
$response->enqueue(null, ['workflowSid' => 'WW0123456789abcdef0123456789abcdef'])

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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\VoiceResponse;
5+
use Twilio\TwiML\VoiceResponse;
66

77
$response = new VoiceResponse();
88
$response->enqueue(

rest/voice/generate-twiml-play/twiml-play.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
// this line loads the library
55
require('/path/to/twilio-php/Services/Twilio.php');
6-
use Services_Twilio_Twiml;
6+
use Services_Twilio_TwiML;
77

8-
$response = new Services_Twilio_Twiml;
8+
$response = new Services_Twilio_TwiML;
99
$response->say("Hello. It's me. I've been wondering if after this guide you'd like to meet.");
1010
$response->play("http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3");
1111
print $response;

rest/voice/generate-twiml-say/generate-twiml-say.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
// this line loads the library
55
require('/path/to/twilio-php/Services/Twilio.php');
6-
use Services_Twilio_Twiml;
6+
use Services_Twilio_TwiML;
77

8-
$response = new Services_Twilio_Twiml;
8+
$response = new Services_Twilio_TwiML;
99
$response->say("Hello from your pals at Twilio! Have fun.");
1010
print $response;

tools/automation/twiml-generator/generator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
# coding: utf-8
3-
from twiml_generator import TwimlCodeGenerator, load_language_spec
3+
from twiml_generator import TwiMLCodeGenerator, load_language_spec
44
from pathlib import Path
55
from lxml import etree
66

@@ -63,7 +63,7 @@ def generate_code_sample_filepath(twiml_filepath, language):
6363
twiml_filepath, language
6464
)
6565
print("{} -> {}".format(twiml_filepath, code_filepath), end='')
66-
code_generator = TwimlCodeGenerator(
66+
code_generator = TwiMLCodeGenerator(
6767
twiml_filepath,
6868
code_filepath=code_filepath,
6969
lib_filepath=Path(__file__).parent / 'lib',
@@ -82,9 +82,9 @@ def generate_code_sample_filepath(twiml_filepath, language):
8282
if args.test:
8383
result, stdout, input_tree, output_tree = code_generator.verify(
8484
)
85-
if result == TwimlCodeGenerator.VERIFY_SUCCESS:
85+
if result == TwiMLCodeGenerator.VERIFY_SUCCESS:
8686
print(' \x1B[92m[passed]\x1B[39m')
87-
elif result == TwimlCodeGenerator.VERIFY_FAILURE:
87+
elif result == TwiMLCodeGenerator.VERIFY_FAILURE:
8888
print(' \x1B[91m[failed]\x1B[39m')
8989
print('INPUT:\n' + input_tree)
9090
print('OUTPUT:\n' + output_tree)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// https://www.twilio.com/docs/libraries/php
55
require_once '/path/to/vendor/autoload.php';
66

7-
use Twilio\Twiml\VoiceResponse;
7+
use Twilio\TwiML\VoiceResponse;
88

99
$response = new VoiceResponse();
1010
$response->dial()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// https://www.twilio.com/docs/libraries/php
55
require_once '/path/to/vendor/autoload.php';
66

7-
use Twilio\Twiml\VoiceResponse;
7+
use Twilio\TwiML\VoiceResponse;
88

99
$response = new VoiceResponse();
1010
$response->enqueue('Queue Demo');

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// https://www.twilio.com/docs/libraries/php
55
require_once '/path/to/vendor/autoload.php';
66

7-
use Twilio\Twiml\VoiceResponse;
7+
use Twilio\TwiML\VoiceResponse;
88

99
$response = new VoiceResponse();
1010

0 commit comments

Comments
 (0)