Skip to content

Instantly share code, notes, and snippets.

protected function getPropertiesPartial($data, $includeParams = true) {
$template = $this->getTemplate('/scaffold/partials/properties.mustache');
$template->set('resource', $this->context->getResourceKey());
$template->set('serviceName', $this->service);
$sections = $this->context->getSections();
$fields = $this->context->getFields($includeParams);
// draw fields that are part of seperate sections
<Response>
<Say language="fr">
Bonjour, je m'appelle Art.
</Say>
</Response>
<Response>
<Say>
Hello World. This is a test for Twilio.
</Say>
</Response>
@reneighbor
reneighbor / dial-input.php
Created March 26, 2012 20:51
Calling Card App
<?php
header("content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
?>
<Response>
<Gather action="handle-input.php" method="POST">
<Say>Thanks for using the phone card app. Please dial the number you'd like to call. Dial the area code and full seven digits.</Say>
</Gather>
</Response>
<Response>
<Gather numDigits="1" timeout="5" action="http://callpotential.mediagiantdesign.com/twilio/followupcall.php?toDial=5612515718&amp;lead_id=123">
<Say>Press 1 to connect to the customer.</Say>
</Gather>
<Say>Disconnecting... response took too long.</Say>
</Response>