Talis
12-06-07, 14:09
Hi,
I am new to using this api and am not sure if I am doing something wrong. What I think I am doing is retrieving a full list of all merchants signed up to the Shop Window toolset. However, only 278 merchants are retrieved, yet in the intro information about shop window toolset it mentions "Affiliate Window's database of over 3.5 million products from over 700 retailer ...". Could anyone confirm if I am using this call correctly
Many thanks
PHP code below
-------------------------------------------------
<?php
// DETERMINE SYSTEM SETTINGS, depending on OS
if (!defined('HOME_PATH')) {
$sPath= dirname(__FILE__).DIRECTORY_SEPARATOR;
define('HOME_PATH', $sPath);
}
// USER DETAILS
define('USER_ID', 'xxxxx');
define('USER_PASS', 'yyyyyyyyyyyyyyyyyyyyyyyyyyy');
// LOAD CLASSES
require_once('includes'.DIRECTORY_SEPARATOR.'class es'.DIRECTORY_SEPARATOR.'class.api_client.php');
//new client
$oClient = new api_client();
//make the SOAP call
$oMerchants = $oClient->call('getMerchant' );
//get the products array
$aMerchants = $oMerchants->getMerchantReturn;
//print each product name to the page
$i=1;
foreach ($aMerchants as $oProduct) {
print $i++."\n";
print $oProduct->iId."\n";
print $oProduct->sName."\n";
print $oProduct->sLogoUrl."\n";
print $oProduct->sDisplayUrl."\n";
print $oProduct->sClickThroughUrl."\n";
print "--------------------------------------------------------------------\n\n\n";
}
?>
I am new to using this api and am not sure if I am doing something wrong. What I think I am doing is retrieving a full list of all merchants signed up to the Shop Window toolset. However, only 278 merchants are retrieved, yet in the intro information about shop window toolset it mentions "Affiliate Window's database of over 3.5 million products from over 700 retailer ...". Could anyone confirm if I am using this call correctly
Many thanks
PHP code below
-------------------------------------------------
<?php
// DETERMINE SYSTEM SETTINGS, depending on OS
if (!defined('HOME_PATH')) {
$sPath= dirname(__FILE__).DIRECTORY_SEPARATOR;
define('HOME_PATH', $sPath);
}
// USER DETAILS
define('USER_ID', 'xxxxx');
define('USER_PASS', 'yyyyyyyyyyyyyyyyyyyyyyyyyyy');
// LOAD CLASSES
require_once('includes'.DIRECTORY_SEPARATOR.'class es'.DIRECTORY_SEPARATOR.'class.api_client.php');
//new client
$oClient = new api_client();
//make the SOAP call
$oMerchants = $oClient->call('getMerchant' );
//get the products array
$aMerchants = $oMerchants->getMerchantReturn;
//print each product name to the page
$i=1;
foreach ($aMerchants as $oProduct) {
print $i++."\n";
print $oProduct->iId."\n";
print $oProduct->sName."\n";
print $oProduct->sLogoUrl."\n";
print $oProduct->sDisplayUrl."\n";
print $oProduct->sClickThroughUrl."\n";
print "--------------------------------------------------------------------\n\n\n";
}
?>