require_once 'Services/Ebay.php';
// pass some authentication data
$session = Services_Ebay::getSession($devId, $appId, $certId);
$session->setToken($token);
// get an eBay item
$item = $ebay->GetItem(4501333179, 2);
// The Seller property is an object as well
echo 'User-Id of the seller: '.$item->Seller->UserId.'<br />';
// convert the item to an array
echo '<pre>';
print_r($item->toArray());
echo '</pre>';
// Use methods of the model
$item->AddToDescription('I forgot some important information');
// Change the item
$item->Title = 'The new title of the item';
$ebay->ReviseItem($item); |