PHP code example of vismutx / easycredit-api-php

1. Go to this page and download the library: Download vismutx/easycredit-api-php 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/ */

    

vismutx / easycredit-api-php example snippets


    


Instance = new Vismutx\EasycreditApiPhp\Api\ModellrechnungApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$webshop_id = "webshop_id_example"; // string | Webshop-ID
$finanzierungsbetrag = 8.14; // float | Financing amount

try {
    $result = $apiInstance->executeBeispielrechnungDurchfuehren($webshop_id, $finanzierungsbetrag);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ModellrechnungApi->executeBeispielrechnungDurchfuehren: ', $e->getMessage(), PHP_EOL;
}