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 makes use of the Exception handling
4
 *
5
 * $Id: example_features_Exception.php,v 1.1 2004/11/30 20:03:48 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
try {
22
    $foo = $ebay->UnknownMethod('foo');
23
} catch (Services_Ebay_Exception $e) {
24
    echo 'An error occured: '.$e->getMessage();
25
}
26
?>