| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/hans_sites/froyo2me.com/ |
Upload File : |
<?php
die();
require_once($_SERVER['DOCUMENT_ROOT'].'/php/postmates_api.php');
$json = get_delivery_quote('1031 S Bluff St, St. George, UT, 84770');
//$json = get_delivery_quote('4275 W Balance Rock Dr, Meridian, ID, 83642');
var_dump($json);
$quote = json_decode($json);
echo '<pre>'.print_r($quote,true).'</pre>';
if(empty($quote) || !empty($quote->error)) {
echo 'Can\'t deliver to that address';
} else {
echo 'Can deliver. Fee: $'.number_format($quote->fee/100,2).', id: '.$quote->id;
$json = do_delivery($quote->id,'1031 S Bluff St, St. George, UT, 84770','Jeremy Johnson','4358623428',3,'ASAP');
var_dump($json);
}
?>