Permalink
Browse files

Update for API version 2010-04-01

  • Loading branch information...
1 parent 4ef942d commit 2812374bd61ac183f4750a2ff51d5ced5e221cd6 @chadsmith committed Feb 17, 2011
Showing with 8 additions and 8 deletions.
  1. +2 −2 applets/check/twiml.php
  2. +2 −2 applets/read/twiml.php
  3. +2 −2 applets/reset/twiml.php
  4. +2 −2 applets/set/twiml.php
View
@@ -1,5 +1,5 @@
<?php
-$number = 'voice' == AppletInstance::getFlowType() ? normalize_phone_to_E164($_REQUEST['Caller']) : normalize_phone_to_E164($_REQUEST['From']);
+$number = normalize_phone_to_E164($_REQUEST['From']);
$cookies = PluginData::get('cookies'.$number, new stdClass());
$name = AppletInstance::getValue('name');
@@ -22,4 +22,4 @@
$response->addRedirect($fail);
}
-$response->Respond();
+$response->Respond();
View
@@ -1,5 +1,5 @@
<?php
-$number = 'voice' == AppletInstance::getFlowType() ? normalize_phone_to_E164($_REQUEST['Caller']) : normalize_phone_to_E164($_REQUEST['From']);
+$number = normalize_phone_to_E164($_REQUEST['From']);
$cookies = PluginData::get('cookies'.$number, new stdClass());
$text = AppletInstance::getValue('text');
@@ -23,4 +23,4 @@
if(!empty($next))
$response->addRedirect($next);
-$response->Respond();
+$response->Respond();
View
@@ -1,5 +1,5 @@
<?php
-$number = 'voice' == AppletInstance::getFlowType() ? normalize_phone_to_E164($_REQUEST['Caller']) : normalize_phone_to_E164($_REQUEST['From']);
+$number = normalize_phone_to_E164($_REQUEST['From']);
PluginData::delete('cookies'.$number);
@@ -9,4 +9,4 @@
if(!empty($next))
$response->addRedirect($next);
-$response->Respond();
+$response->Respond();
View
@@ -1,5 +1,5 @@
<?php
-$number = 'voice' == AppletInstance::getFlowType() ? normalize_phone_to_E164($_REQUEST['Caller']) : normalize_phone_to_E164($_REQUEST['From']);
+$number = normalize_phone_to_E164($_REQUEST['From']);
$cookies = PluginData::get('cookies'.$number, new stdClass());
$names = (array) AppletInstance::getValue('names[]');
@@ -25,4 +25,4 @@
if(!empty($next))
$response->addRedirect($next);
-$response->Respond();
+$response->Respond();

0 comments on commit 2812374

Please sign in to comment.