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_GetSellerList.php,v 1.2 2004/11/07 12:14:38 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
$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'));
25
 
26
$items = array();
27
foreach ($list as $item) {
28
	echo '<pre>';
29
	print_r($item->toArray());
30
	echo '</pre>';
31
}
32
 
33
 
34
echo	'<pre>';
35
print_r($list->toArray());
36
echo	'</pre>';
37
 
38
echo 'Items:<br />';
39
foreach ($list as $item) {
40
    echo $item;
41
    echo '<br />';
42
}
43
 
44
echo	'<pre>';
45
print_r($item->toArray());
46
echo	'</pre>';
47
 
48
$item->Get();
49
 
50
echo	'<pre>';
51
print_r($item->toArray());
52
echo	'</pre>';
53
?>