PHP code example of hypeit / tradetracker-api-client

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

    

hypeit / tradetracker-api-client example snippets


$authentication = new Authentication(
    12345, // The customer id
    'passphrase', // The passphrase
    true, // Whether to not allow changes (optional)
    'en_GB', // The locale to be used for results. (optional)
    false // Whether to receive demo results. (optional)
);

$client = new TradeTrackerClient('http://ws.tradetracker.com/soap/affiliate?wsdl', $authenticate);

$affiliateSites = $client->getAffiliateSites();

$filter = new AffiliateSiteFilter();
$filter->setLimit(5);

$affiliateSites = $client->getAffiliateSites($filter);