Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?PHP
/**
 * example that fetches a user object
 *
 * $Id: example_GetSellerList.php,v 1.2 2004/11/07 12:14:38 schst Exp $
 *
 * @package     Services_Ebay
 * @subpackage  Examples
 * @author      Stephan Schmidt
 */
error_reporting(E_ALL);
require_once '../Ebay.php';
require_once 'config.php';

$session = Services_Ebay::getSession($devId, $appId, $certId);

$session->setToken($token);

$ebay = new Services_Ebay($session);

/**
 * get the user information
 */
$list = $ebay->GetSellerList(array('UserId'=>'superman-74', 'DetailLevel' => 96, 'ItemsPerPage' => 10, 'PageNumber' => 1, 'StartTimeFrom' => '2003-11-01 00:00:00', 'StartTimeTo' => '2004-12-01 00:00:00'));

$items = array();
foreach ($list as $item) {
        echo '<pre>';
        print_r($item->toArray());
        echo '</pre>';
}


echo    '<pre>';
print_r($list->toArray());
echo    '</pre>';

echo 'Items:<br />';
foreach ($list as $item) {
    echo $item;
    echo '<br />';
}

echo    '<pre>';
print_r($item->toArray());
echo    '</pre>';

$item->Get();

echo    '<pre>';
print_r($item->toArray());
echo    '</pre>';
?>