PHP code example of olsgreen / ivendi-quoteware-api

1. Go to this page and download the library: Download olsgreen/ivendi-quoteware-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

olsgreen / ivendi-quoteware-api example snippets


    $ivendi = new \Olsgreen\IVendi\Quoteware\Client([
        'username' => 'www.ivendimotors.com',
        'quotee_uid' => '268E8202-338E-4B26-A6FE-74BCDAB0A357',
    ]);

    $response = $ivendi->quoteware()->request([
        'cashPrice' => 20000,
        'cashDeposit' => 2000,
        'annualDistance' => 10000,
        'term' => 48,
        'currentOdometerReading' => 12345,
        'identity' => 'FV10 XYB',
        'registrationDate' => '2010-07-09T00:00:00.0000Z'
        'creditTier' => CreditTiers::EXCELLENT,
        'entityType' => EntityTypes::PERSONAL,
    ]);

    // {
    //     "hasQuoteResults": true,
    //     "QuotedResultsUID": "aeec6f6f-6d1c-4f1c-8380-e50e0b3554eb",
    //     "QuoteResults": [
    //        ...
    //     ]
    //     @see https://documentation.ivendi.com/docs/ExampleQuotewareResponse
    // }