This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<service-task-definition> | |
<engine-type>2</engine-type> | |
<last-modified>2018-07-24</last-modified> | |
<label>Sending SMS by Twilio</label> | |
<label locale="ja">SMS 送信 by Twilio</label> | |
<configs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = $_REQUEST['RecordingUrl']; | |
//mail('hatanaka@questetra.com', 'RecordingUrl', $url); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require '../vendor/autoload.php'; | |
$xml = new Services_Twilio_Twiml(); | |
$xml->say('しばらくお待ち下さい。', array('language' => 'ja-jp')); | |
$xml->dial('+81xxxxxxxx', array( | |
'callerId' => '+81xxxxxxxx', | |
'record' => 'true', | |
'action' => 'http://158.199.192.79/hatanaka/record.php' | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require '../vendor/autoload.php'; | |
$AccountSid = 'xxxxxxxx'; | |
$AuthToken = 'xxxxxxxx'; | |
$client = new Services_Twilio($AccountSid, $AuthToken); | |
$From = '+81xxxxxxxx'; | |
$To = '+81xxxxxxxx'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require '../vendor/autoload.php'; | |
$Digits = (integer)$_REQUEST['Digits']; | |
$xml = new Services_Twilio_Twiml(); | |
$text = <<<EOT | |
こんにちは。$Digits を押しましたね。 | |
EOT; | |
$xml->say($text, array('language' => 'ja-jp')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Gather timeout="10" numDigits="1" action="http://158.199.192.79/hatanaka/ivr_response.php"> | |
<Say language="ja-jp">数字を押してください。</Say> | |
</Gather> | |
</Response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require '../vendor/autoload.php'; | |
$From = $_REQUEST['From']; | |
$xml = new Services_Twilio_Twiml(); | |
$text = <<<EOT | |
こんにちは $From さん | |
EOT; | |
$xml->say($text, array('language' => 'ja-jp')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require '../vendor/autoload.php'; | |
$xml = new Services_Twilio_Twiml(); | |
$xml->say('こんにちは', array('language' => 'ja-jp')); | |
header('Content-Type: text/xml; charset=UTF-8'); | |
echo $xml; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-Type: text/xml; charset=UTF-8'); | |
?> | |
<Response> | |
<Say language="ja-jp">こんにちは</Say> | |
</Response> |