Services_Ebay
[ class tree: Services_Ebay ] [ index: Services_Ebay ] [ all elements ]

Source for file FetchToken.php

Documentation is available at FetchToken.php

  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$
  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. {
  15.    /**
  16.     * verb of the API call
  17.     *
  18.     * @var  string 
  19.     */
  20.     protected $verb = 'FetchToken';
  21.  
  22.    /**
  23.     * authentication type of the call
  24.     *
  25.     * @var  int 
  26.     */
  27.     protected $authType = Services_Ebay::AUTH_TYPE_USER;
  28.  
  29.     /**
  30.     * parameter map that is used, when scalar parameters are passed
  31.     *
  32.     * @var  array 
  33.     */
  34.     protected $paramMap = array(
  35.                                  'SecretID'
  36.                                 );
  37.  
  38.  
  39.    /**
  40.     * make the API call
  41.     *
  42.     * @param    object Services_Ebay_Session 
  43.     * @return   string 
  44.     */
  45.     public function call(Services_Ebay_Session $session)
  46.     {
  47.         $return = parent::call($session);
  48.         return $return['FetchTokenResponse']['eBayAuthToken'];
  49.     }
  50. }
  51. ?>

Documentation generated on Mon, 11 Mar 2019 15:49:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.