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 | |
public function twilio_csv_show_results() | |
{ | |
// Exit unless the stars are aligned | |
if (!$_POST['csv-submit']) return 'Form was not submitted.'; | |
if ($_POST['confirm-twilio'] !== 'confirm') return 'Confirmation box wasn\'t checked.'; | |
if (!$_POST['body']) return 'No message to send!'; | |
// Start tracking execution time |
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 | |
public function get_sub_item( $request ) { | |
$url = $request->get_url_params(); | |
$view_id = intval( $url['id'] ); | |
$entry_id = intval( $url['s_id'] ); | |
$format = \GV\Utils::get( $url, 'format', 'json' ); | |
if (isset($_GET['gv_response_format'])) { | |
$format = $_GET['gv_response_format']; | |
} |