PHP code example of r0dgerv / api-client-tradesoft

1. Go to this page and download the library: Download r0dgerv/api-client-tradesoft 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/ */

    

r0dgerv / api-client-tradesoft example snippets


use R0dgerV\ApiClientTradesoft\ApiClient;

$client = new ApiClient('YouLogin', 'YouPassword');
$result = $client->getProviderList();
echo json_encode($result, true)

use R0dgerV\ApiClientTradesoft\ApiClient;

$client = new ApiClient('YouLogin', 'YouPassword');
$result = $client->generateProviderContentForProducerList(
                'portal_absauto',
                'YouLoginProducer',
                'YouPasswordProducer',
                'kl9'
            )->generateProviderContentForProducerList(
                'adeo',
                'YouLoginProducer',
                'YouPasswordProducer',
                'kl9'
            )
            ->getProducerList();
echo json_encode($result, true)

use R0dgerV\ApiClientTradesoft\ApiClient;

$client = new ApiClient('YouLogin', 'YouPassword');
$result = $client->generateProviderContentForOptionsList(
                'portal_absauto',
                'YouLoginProducer',
                'YouPasswordProducer',
            )->generateProviderContentForOptionsList(
                'adeo',
                'YouLoginProducer',
                'YouPasswordProducer',
            )
            ->getOptionsList();
echo json_encode($result, true)

use R0dgerV\ApiClientTradesoft\ApiClient;

$client = new ApiClient('YouLogin', 'YouPassword');
$result = $client->generateProviderContentForPriceList(
                'portal_absauto',
                'YouLoginProducer',
                'YouPasswordProducer',
                'kl9',
                'MAHLE', ['analogs' => 'N']
            )->generateProviderContentForPriceList(
                'adeo',
                'YouLoginProducer',
                'YouPasswordProducer',
                'kl9',
                'MAHLE', ['analogs' => 'N']
            )
            ->getPriceList();
echo json_encode($result, true)