Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gig3m committed Jan 9, 2014
1 parent 923d7cb commit 0fd59c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vots.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class VOTSService {
public $lastname;
public $vin;
public static $decoded;
public static $raw;

private $codes = array(
"BB" => "review by fleet department",
Expand Down Expand Up @@ -58,6 +59,7 @@ public function __construct($json = NULL)

self::$decoded = $json;


}

public function getJSON($lastname, $vin)
Expand All @@ -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("), ")");

Expand Down

0 comments on commit 0fd59c7

Please sign in to comment.