Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?PHP
2
/**
3
 * example that fetches a user object
4
 *
5
 * $Id: example_GetUser.php,v 1.1 2004/10/28 17:14:53 schst Exp $
6
 *
7
 * @package     Services_Ebay
8
 * @subpackage  Examples
9
 * @author      Stephan Schmidt
10
 */
11
error_reporting(E_ALL);
12
require_once '../Ebay.php';
13
require_once 'config.php';
14
 
15
$session = Services_Ebay::getSession($devId, $appId, $certId);
16
 
17
$session->setToken($token);
18
 
19
$ebay = new Services_Ebay($session);
20
 
21
/**
22
 * get the user information
23
 */
24
$user = $ebay->GetUser('agebook');
25
 
26
/**
27
 * access single properties
28
 */
29
echo 'Display a the user ID: ';
30
echo $user->UserId."<br>";
31
 
32
/**
33
 * get all properties
34
 */
35
echo 'Display all properties: ';
36
echo '<pre>';
37
print_r($user->toArray());
38
echo '</pre>';
39
 
40
/**
41
 * get feedback summary
42
 */
43
echo 'Get the feedback for the user';
44
$summary = $user->getFeedback( Services_Ebay::FEEDBACK_BRIEF );
45
echo "This user's score is ".$summary->Score."<br />";
46
 
47
echo '<pre>';
48
print_r($summary->toArray());
49
echo '</pre>';
50
?>