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

Commit

Permalink
Undo changes to irrelevant files
Browse files Browse the repository at this point in the history
Signed-off-by: Maria Bermudez <[email protected]>
  • Loading branch information
bermudezmt committed Mar 25, 2021
1 parent ab17fc8 commit 2a37f99
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions rest/voice/generate-twiml-play/twiml-play.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

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

$response = new Services_Twilio_TwiML;
$response = new Services_Twilio_Twiml;
$response->say("Hello. It's me. I've been wondering if after this guide you'd like to meet.");
$response->play("http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3");
print $response;
4 changes: 2 additions & 2 deletions rest/voice/generate-twiml-say/generate-twiml-say.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

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

$response = new Services_Twilio_TwiML;
$response = new Services_Twilio_Twiml;
$response->say("Hello from your pals at Twilio! Have fun.");
print $response;
8 changes: 4 additions & 4 deletions tools/automation/twiml-generator/generator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# coding: utf-8
from twiml_generator import TwiMLCodeGenerator, load_language_spec
from twiml_generator import TwimlCodeGenerator, load_language_spec
from pathlib import Path
from lxml import etree

Expand Down Expand Up @@ -63,7 +63,7 @@ def generate_code_sample_filepath(twiml_filepath, language):
twiml_filepath, language
)
print("{} -> {}".format(twiml_filepath, code_filepath), end='')
code_generator = TwiMLCodeGenerator(
code_generator = TwimlCodeGenerator(
twiml_filepath,
code_filepath=code_filepath,
lib_filepath=Path(__file__).parent / 'lib',
Expand All @@ -82,9 +82,9 @@ def generate_code_sample_filepath(twiml_filepath, language):
if args.test:
result, stdout, input_tree, output_tree = code_generator.verify(
)
if result == TwiMLCodeGenerator.VERIFY_SUCCESS:
if result == TwimlCodeGenerator.VERIFY_SUCCESS:
print(' \x1B[92m[passed]\x1B[39m')
elif result == TwiMLCodeGenerator.VERIFY_FAILURE:
elif result == TwimlCodeGenerator.VERIFY_FAILURE:
print(' \x1B[91m[failed]\x1B[39m')
print('INPUT:\n' + input_tree)
print('OUTPUT:\n' + output_tree)
Expand Down

0 comments on commit 2a37f99

Please sign in to comment.