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 the URL of the eBay logo
4
 * in three sizes.
5
 *
6
 * This call returns an array with the URL, width and height
7
 *
8
 * $Id: example_features_setErrorLanguage.php,v 1.1 2004/12/01 19:50:23 schst Exp $
9
 *
10
 * @package     Services_Ebay
11
 * @subpackage  Examples
12
 * @author      Stephan Schmidt
13
 */
14
error_reporting(E_ALL);
15
require_once '../Ebay.php';
16
require_once 'config.php';
17
 
18
$session = Services_Ebay::getSession($devId, $appId, $certId);
19
 
20
$session->setToken($token);
21
 
22
$ebay = new Services_Ebay($session);
23
 
24
// get errors in German
25
$session->setErrorLanguage(Services_Ebay::SITEID_DE);
26
 
27
try {
28
    $logo = $ebay->GetLogoURL('Foo');
29
} catch (Exception $e) {
30
    echo $e->getMessage();
31
}
32
?>