Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 416c9a772e
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (37 sloc) 0.834 kb
<?PHP
/**
* example that fetches a user object
*
* $Id$
*
* @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 bidder list
*/
echo 'Getting Bidder List directly:<br />';
$list = $ebay->GetBidderList('pgoodman123');
foreach ($list as $item) {
echo $item;
echo '<br />';
}
echo '<br /><br />';
/**
* get the user
*/
$user = $ebay->GetUser('loislane-74');
echo 'Getting Bidder List on User object:<br />';
$list2 = $user->GetBidderList('true', 'ReturnAll', '2005-01-01', '2006-01-01');
foreach ($list2 as $item) {
echo $item;
echo '<br />';
}
?>
Jump to Line
Something went wrong with that request. Please try again.