Class Client
Client object for executing commands on a web service.
- Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
- Guzzle\Http\Client implements Guzzle\Http\ClientInterface
- Guzzle\Service\Client implements Guzzle\Service\ClientInterface
Direct known subclasses
Guzzle\Tests\Service\Mock\MockClient
public static
|
#
factory( array|
Basic factory method to create a new client. Extend this method in subclasses to build more complex clients. |
public static
array
|
|
public
mixed
|
|
public
|
#
getCommand( string $name, array $args = array() )
Get a command by name. First, the client will see if it has a service description and if the service description defines a command by the supplied name. If no dynamic command is found, the client will look for a concrete command class exists matching the name supplied. If neither are found, an InvalidArgumentException is thrown. |
public
|
#
setCommandFactory(
Set the command factory used to create commands by name |
public
|
#
setResourceIteratorFactory(
Set the resource iterator factory associated with the client |
public
ResourceIteratorInterface
|
#
getIterator( string|
Get a resource iterator from the client. |
public
mixed
|
#
execute(
Execute one or more commands |
public
|
#
setDescription(
Set the service description of the client |
public
|
|
public
|
#
setInflector(
Set the inflector used with the client |
public
|
|
protected
|
#
prepareCommand(
Prepare a command for sending and get the RequestInterface object created by the command |
protected
array
|
|
protected
|
|
protected
|
|
public
|
addSubscriber(),
dispatch(),
getEventDispatcher(),
setEventDispatcher()
|
string |
COMMAND_PARAMS
|
#
'command.params'
|
CURL_OPTIONS,
DEFAULT_SELECT_TIMEOUT,
DISABLE_REDIRECTS,
MAX_HANDLES,
REQUEST_OPTIONS,
REQUEST_PARAMS,
SSL_CERT_AUTHORITY
|
CREATE_REQUEST,
HTTP_DATE
|
protected
|
$serviceDescription
Description of the service and possible commands |
|
protected
|
$commandFactory
|
|
protected
|
$resourceIteratorFactory
|
|
protected
|
$inflector
Inflector associated with the service/client |
$defaultHeaders,
$requestFactory,
$userAgent
|
$eventDispatcher
|