diff --git a/vots.php b/vots.php index d7c9389..cca4cd4 100644 --- a/vots.php +++ b/vots.php @@ -14,6 +14,7 @@ class VOTSService { public $lastname; public $vin; public static $decoded; + public static $raw; private $codes = array( "BB" => "review by fleet department", @@ -58,6 +59,7 @@ public function __construct($json = NULL) self::$decoded = $json; + } public function getJSON($lastname, $vin) @@ -73,6 +75,9 @@ public function getJSON($lastname, $vin) // Get VOTS Servlet $response = file_get_contents("https://www.jeep.com/vots/VOTSServlet?firstName=&lastName=$lastname&vin_last8=$vin&service=json"); + // Save the raw response for debug + $raw = $response; + //trim the crap off the front and back, wrapped in votsservice() $response = rtrim(ltrim($response, "votsservice("), ")");