Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?PHP
2
/**
3
 * Fetch a token from eBay.
4
 *
5
 * This method is only needed, when using Services_Ebay in a
6
 * non-web environment
7
 *
8
 * $Id: FetchToken.php,v 1.1 2004/10/28 17:14:53 schst Exp $
9
 *
10
 * @package Services_Ebay
11
 * @author  Stephan Schmidt <schst@php.net>
12
 * @link    http://developer.ebay.com/DevZone/docs/API_Doc/Functions/FetchToken/FetchTokenLogic.htm
13
 */
14
class Services_Ebay_Call_FetchToken extends Services_Ebay_Call
15
{
16
   /**
17
    * verb of the API call
18
    *
19
    * @var  string
20
    */
21
    protected $verb = 'FetchToken';
22
 
23
   /**
24
    * authentication type of the call
25
    *
26
    * @var  int
27
    */
28
    protected $authType = Services_Ebay::AUTH_TYPE_NONE;
29
 
30
    /**
31
    * parameter map that is used, when scalar parameters are passed
32
    *
33
    * @var  array
34
    */
35
    protected $paramMap = array(
36
                                 'SecretId'
37
                                );
38
 
39
 
40
   /**
41
    * make the API call
42
    *
43
    * @param    object Services_Ebay_Session
44
    * @return   string
45
    */
46
    public function call(Services_Ebay_Session $session)
47
    {
48
        $return = parent::call($session);
49
        return $return['FetchTokenResult'];
50
    }
51
}
52
?>