isometriks/galves-api

There is no license information available for the latest version (v0.1) of this package.

Guzzle API for interacting with Galves Vehicle API

v0.1 2014-12-10 20:39 UTC

This package is auto-updated.

Last update: 2024-10-24 09:37:11 UTC


README

Galves Vehicle Information API

use Galves\Api\Client;

$galves = new Client();

// Login to get authToken
$galves->login([
    'username' => 'some_username',
    'acctNo' => '123456',
]);

// Get years
$years = $galves->getYears(); // [1998, 1999, 2000, 2001, ...]

// Get Makes
$makes = $galves->getMakes(); // ['BMW', 'Ford', ...]

// Get Models
$models = $galves->getModels(1990, 'BMW'); // ['3 Series', '4 Series', ...]

// Get Styles
$styles = $galves->getStyles(1990, 'BMW', '3 Series'); // ['guid' => 'style', 'guid2' => 'style2']

// Get Vehicle
$vehicle = $galves->getVehicle($guid);

// Get Mileage Adjustment
$adjust = $galves->getMileageAdjustment($guid, 123456); // (int)-450