<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;?php
/**
 * This file aims to show you how to use this generated package.
 * In addition, the goal is to show which methods are available and the fist needed parameter(s)
 * You have to use an associative array such as:
 * - the key must be a constant beginning with WSDL_ from AbstractSoapClientbase class each generated ServiceType class extends this class
 * - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
 * $options = array(
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL =&gt; 'http://ws.tradetracker.com/soap/affiliate?wsdl',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE =&gt; true,
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN =&gt; 'you_secret_login',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD =&gt; 'you_secret_password',
 * );
 * etc....
 */
require_once __DIR__ . '/vendor/autoload.php';
/**
 * Minimal options
 */
$options = array(
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL =&gt; 'http://ws.tradetracker.com/soap/affiliate?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP =&gt; ClassMap::get(),
);
/**
 * Samples for Authenticate ServiceType
 */
$authenticate = new \ServiceType\Authenticate($options);
/**
 * Sample call for authenticate operation/method
 */
if ($authenticate-&gt;authenticate($customerID, $passphrase, $sandbox, $locale, $demo) !== false) {
    print_r($authenticate-&gt;getResult());
} else {
    print_r($authenticate-&gt;getLastError());
}
/**
 * Samples for Get ServiceType
 */
$get = new \ServiceType\Get($options);
/**
 * Sample call for getAffiliateSites operation/method
 */
if ($get-&gt;getAffiliateSites(new \StructType\AffiliateSiteFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getAffiliateSiteTypes operation/method
 */
if ($get-&gt;getAffiliateSiteTypes() !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getAffiliateSiteCategories operation/method
 */
if ($get-&gt;getAffiliateSiteCategories() !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getCampaigns operation/method
 */
if ($get-&gt;getCampaigns($affiliateSiteID, new \StructType\CampaignFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getCampaignCategories operation/method
 */
if ($get-&gt;getCampaignCategories() !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getCampaignCommissionExtended operation/method
 */
if ($get-&gt;getCampaignCommissionExtended($affiliateSiteID, $campaignID) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getCampaignNewsItems operation/method
 */
if ($get-&gt;getCampaignNewsItems(new \StructType\CampaignNewsItemFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getMaterialBannerDimensions operation/method
 */
if ($get-&gt;getMaterialBannerDimensions() !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getMaterialBannerImageItems operation/method
 */
if ($get-&gt;getMaterialBannerImageItems($affiliateSiteID, $materialOutputType, new \StructType\MaterialItemFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getMaterialBannerFlashItems operation/method
 */
if ($get-&gt;getMaterialBannerFlashItems($affiliateSiteID, $materialOutputType, new \StructType\MaterialItemFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getMaterialTextItems operation/method
 */
if ($get-&gt;getMaterialTextItems($affiliateSiteID, $materialOutputType, new \StructType\MaterialItemFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getMaterialHTMLItems operation/method
 */
if ($get-&gt;getMaterialHTMLItems($affiliateSiteID, $materialOutputType, new \StructType\MaterialItemFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getMaterialIncentiveVoucherItems operation/method
 */
if ($get-&gt;getMaterialIncentiveVoucherItems($affiliateSiteID, $materialOutputType, new \StructType\MaterialItemFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getMaterialIncentiveOfferItems operation/method
 */
if ($get-&gt;getMaterialIncentiveOfferItems($affiliateSiteID, $materialOutputType, new \StructType\MaterialItemFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getClickTransactions operation/method
 */
if ($get-&gt;getClickTransactions($affiliateSiteID, new \StructType\ClickTransactionFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getConversionTransactions operation/method
 */
if ($get-&gt;getConversionTransactions($affiliateSiteID, new \StructType\ConversionTransactionFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getReportAffiliateSite operation/method
 */
if ($get-&gt;getReportAffiliateSite($affiliateSiteID, new \StructType\ReportAffiliateSiteFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getReportCampaign operation/method
 */
if ($get-&gt;getReportCampaign($affiliateSiteID, new \StructType\ReportCampaignFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getReportReference operation/method
 */
if ($get-&gt;getReportReference($affiliateSiteID, new \StructType\ReportReferenceFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getFeeds operation/method
 */
if ($get-&gt;getFeeds($affiliateSiteID, new \StructType\FeedFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getFeedProductCategories operation/method
 */
if ($get-&gt;getFeedProductCategories($affiliateSiteID, $feedID) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getFeedProducts operation/method
 */
if ($get-&gt;getFeedProducts($affiliateSiteID, new \StructType\FeedProductFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getPayments operation/method
 */
if ($get-&gt;getPayments(new \StructType\PaymentFilter()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Samples for Change ServiceType
 */
$change = new \ServiceType\Change($options);
/**
 * Sample call for changeCampaignSubscription operation/method
 */
if ($change-&gt;changeCampaignSubscription($affiliateSiteID, $campaignID, $subscriptionAction) !== false) {
    print_r($change-&gt;getResult());
} else {
    print_r($change-&gt;getLastError());
}
/**
 * Samples for Create ServiceType
 */
$create = new \ServiceType\Create($options);
/**
 * Sample call for createConversionTransaction operation/method
 */
if ($create-&gt;createConversionTransaction($transactionType, $affiliateSiteID, new \StructType\CreateConversionTransactionOptions()) !== false) {
    print_r($create-&gt;getResult());
} else {
    print_r($create-&gt;getLastError());
}
</pre></body></html>