web/lib/Zend/Oauth/Consumer.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    12  * obtain it through the world-wide-web, please send an email
    12  * obtain it through the world-wide-web, please send an email
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Oauth
    16  * @package    Zend_Oauth
    17  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @version    $Id: Consumer.php 23170 2010-10-19 18:29:24Z mabe $
    19  * @version    $Id: Consumer.php 24593 2012-01-05 20:35:02Z matthew $
    20  */
    20  */
    21 
    21 
    22 /** Zend_Oauth */
    22 /** Zend_Oauth */
    23 require_once 'Zend/Oauth.php';
    23 require_once 'Zend/Oauth.php';
    24 
    24 
    41 require_once 'Zend/Oauth/Config.php';
    41 require_once 'Zend/Oauth/Config.php';
    42 
    42 
    43 /**
    43 /**
    44  * @category   Zend
    44  * @category   Zend
    45  * @package    Zend_Oauth
    45  * @package    Zend_Oauth
    46  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    46  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    47  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    47  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    48  */
    48  */
    49 class Zend_Oauth_Consumer extends Zend_Oauth
    49 class Zend_Oauth_Consumer extends Zend_Oauth
    50 {
    50 {
    51     public $switcheroo = false; // replace later when this works
    51     public $switcheroo = false; // replace later when this works
   180      * @param  Zend_Oauth_Http_AccessToken $request
   180      * @param  Zend_Oauth_Http_AccessToken $request
   181      * @return Zend_Oauth_Token_Access
   181      * @return Zend_Oauth_Token_Access
   182      * @throws Zend_Oauth_Exception on invalid authorization token, non-matching response authorization token, or unprovided authorization token
   182      * @throws Zend_Oauth_Exception on invalid authorization token, non-matching response authorization token, or unprovided authorization token
   183      */
   183      */
   184     public function getAccessToken(
   184     public function getAccessToken(
   185         $queryData, 
   185         $queryData,
   186         Zend_Oauth_Token_Request $token,
   186         Zend_Oauth_Token_Request $token,
   187         $httpMethod = null, 
   187         $httpMethod = null,
   188         Zend_Oauth_Http_AccessToken $request = null
   188         Zend_Oauth_Http_AccessToken $request = null
   189     ) {
   189     ) {
   190         $authorizedToken = new Zend_Oauth_Token_AuthorizedRequest($queryData);
   190         $authorizedToken = new Zend_Oauth_Token_AuthorizedRequest($queryData);
   191         if (!$authorizedToken->isValid()) {
   191         if (!$authorizedToken->isValid()) {
   192             require_once 'Zend/Oauth/Exception.php';
   192             require_once 'Zend/Oauth/Exception.php';