Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Oauth_Token_Access $_accessToken = 'null'Access token retrieved from OAuth Provider
DetailsZend_Oauth_Config $_config = 'null'
DetailsZend_Oauth_Token_Request $_requestToken = 'null'Request Token retrieved from OAuth Provider
Details $switcheroo = 'false'
Details__call(
string $method, array $args
)
:
mixedSimple Proxy to the current Zend_Oauth_Config method. It's that instance which holds all configuration methods and values this object also presents as it's API.
Details__construct(
array|Zend_Config $options
=
null
)
:
voidConstructor; create a new object with an optional array|Zend_Config instance containing initialising options.
DetailsgetAccessToken(
array $queryData, Zend_Oauth_Token_Request $token, string $httpMethod
=
null, Zend_Oauth_Http_AccessToken $request
=
null
)
:
Zend_Oauth_Token_AccessRetrieve an Access Token in exchange for a previously received/authorized Request Token.
DetailsgetLastAccessToken(
)
:
Zend_Oauth_Token_AccessReturn whatever the last Access Token retrieved was while using the current Consumer instance.
DetailsgetLastRequestToken(
)
:
Zend_Oauth_Token_RequestReturn whatever the last Request Token retrieved was while using the current Consumer instance.
DetailsgetRedirectUrl(
null|array $customServiceParameters
=
null, null|Zend_Oauth_Token_Request $token
=
null, null|Zend_OAuth_Http_UserAuthorization $redirect
=
null
)
:
stringAfter a Request Token is retrieved, the user may be redirected to the OAuth Provider to authorize the application's access to their protected resources - the redirect URL being provided by this method.
Once the user has authorized the application for access, they are redirected back to the application which can now exchange the previous Request Token for a fully authorized Access Token.
DetailsgetRequestToken(
null|array $customServiceParameters
=
null, null|string $httpMethod
=
null, null|Zend_Oauth_Http_RequestToken $request
=
null
)
:
Zend_Oauth_Token_RequestAttempts to retrieve a Request Token from an OAuth Provider which is later exchanged for an authorized Access Token used to access the protected resources exposed by a web service API.
DetailsgetToken(
)
:
Zend_Oauth_Token_AccessAlias to self::getLastAccessToken()
Detailsredirect(
null|array $customServiceParameters
=
null, null|Zend_Oauth_Http_UserAuthorization $request
=
null
)
:
voidRather than retrieve a redirect URL for use, e.g. from a controller, one may perform an immediate redirect.
Sends headers and exit()s on completion.
Details