<?php /** * example that fetches a user object * * $Id$ * * @package Services_Ebay * @subpackage Examples * @author Stephan Schmidt */ error_reporting(E_ALL); require_once '../vendor/autoload.php'; require_once 'config.php'; $session = \Services\Ebay::getSession($devId, $appId, $certId); $session->setToken($token); $ebay = new \Services\Ebay($session); /** * get the user information */ $user = $ebay->GetUser('loislane-74'); $result = $user->LeaveFeedback('4501333179', 'positive', 'Fast payment, thank you!'); echo "<pre>"; print_r($result); echo "</pre>";
* * $Id$ * * @package Services_Ebay * @subpackage Examples * @author Stephan Schmidt */ require_once '../vendor/autoload.php'; require_once 'config.php'; $session = \Services\Ebay::getSession($devId, $appId, $certId); $session->setToken($token); $ebay = new \Services\Ebay($session); /** * get the user information */ $user = $ebay->GetUser('agebook'); /** * access single properties */ echo $user->UserId . "<br>"; /** * get all properties */ echo '<pre>'; print_r($user->toArray()); echo '</pre>'; /** * get feedback summary */ $summary = $user->getFeedback(\Services\Ebay::FEEDBACK_BRIEF); echo "This user's score is " . $summary->Score . "<br />";