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.
string $_consumer = 'null'Reference to the Zend_Oauth_Consumer instance in use.
DetailsZend_Oauth_Http_Utility $_httpUtility = 'null'Instance of the general Zend_Oauth_Http_Utility class.
Detailsarray $_parameters = 'array'Array of all custom service parameters to be sent in the HTTP request in addition to the usual OAuth parameters.
Detailsstring $_preferredRequestMethod = 'Zend_Oauth'Request Method for the HTTP Request.
Detailsstring $_preferredRequestScheme = 'null'OAuth specifies three request methods, this holds the current preferred one which by default uses the Authorization Header approach for passing OAuth parameters, and a POST body for non-OAuth custom parameters.
Details__construct(
Zend_Oauth_Consumer $consumer, null|array $parameters
=
null, null|Zend_Oauth_Http_Utility $utility
=
null
)
:
voidConstructor
Details_assessRequestAttempt(
$response
=
null
)
:
voidManages the switch from OAuth request scheme to another lower preference scheme during a request cycle.
Details_toAuthorizationHeader(
array $params, string $realm
=
null
)
:
stringGenerates a valid OAuth Authorization header based on the provided parameters and realm.
DetailsgetConsumer(
)
:
Zend_Oauth_ConsumerReturn the Consumer instance in use.
DetailsgetMethod(
)
:
stringPreferred HTTP request method accessor.
DetailsgetParameters(
)
:
arrayAccessor for an array of custom parameters.
DetailsgetRequestSchemeQueryStringClient(
array $params, string $url
)
:
Zend_Http_ClientReturn an instance of Zend_Http_Client configured to use the Query String scheme for an OAuth driven HTTP request.
DetailssetMethod(
string $method
)
:
Zend_Oauth_HttpSet a preferred HTTP request method.
DetailssetParameters(
array $customServiceParameters
)
:
Zend_Oauth_HttpMutator to set an array of custom parameters for the HTTP request.
DetailsstartRequestCycle(
array $params
)
:
Zend_Http_ResponseCommence a request cycle where the current HTTP method and OAuth request scheme set an upper preferred HTTP request style and where failures generate a new HTTP request style further down the OAuth preference list for OAuth Request Schemes.
On success, return the Request object that results for processing.
Details