Oauth/Http.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Oauth  
Version
$Id$  

\Zend_Oauth_Http

Package: Zend_Oauth
Children
\Zend_Oauth_Http_RequestToken
\Zend_Oauth_Http_AccessToken
\Zend_Oauth_Http_UserAuthorization
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Methods

methodpublic__construct(\Zend_Oauth_Consumer $consumer, null | array $parameters = null, null | \Zend_Oauth_Http_Utility $utility = null) : void

Constructor

Parameters
NameTypeDescription
$consumer\Zend_Oauth_Consumer
$parametersnull | array
$utilitynull | \Zend_Oauth_Http_Utility
methodpublicgetConsumer() : \Zend_Oauth_Consumer

Return the Consumer instance in use.

Returns
TypeDescription
\Zend_Oauth_Consumer
methodpublicgetMethod() : string

Preferred HTTP request method accessor.

Returns
TypeDescription
string
methodpublicgetParameters() : array

Accessor for an array of custom parameters.

Returns
TypeDescription
array
methodpublicgetRequestSchemeQueryStringClient(array $params, string $url) : \Zend_Http_Client

Return an instance of Zend_Http_Client configured to use the Query String scheme for an OAuth driven HTTP request.

Parameters
NameTypeDescription
$paramsarray
$urlstring
Returns
TypeDescription
\Zend_Http_Client
methodpublicsetMethod(string $method) : \Zend_Oauth_Http

Set a preferred HTTP request method.

Parameters
NameTypeDescription
$methodstring
Returns
TypeDescription
\Zend_Oauth_Http
methodpublicsetParameters(array $customServiceParameters) : \Zend_Oauth_Http

Mutator to set an array of custom parameters for the HTTP request.

Parameters
NameTypeDescription
$customServiceParametersarray
Returns
TypeDescription
\Zend_Oauth_Http
methodpublicstartRequestCycle(array $params) : \Zend_Http_Response

Commence 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.
Parameters
NameTypeDescription
$paramsarray
Returns
TypeDescription
\Zend_Http_Response
Throws
ExceptionDescription
\Zend_Oauth_Exceptionon HTTP request errors
Details
Todo
Remove cycling?; Replace with upfront do-or-die configuration  
Documentation was generated by phpDocumentor 2.2.0 .