$_client
$_client : \Zend_Http_Client|null
Http client object
Adapter implementation based on Zend_Http_Client for requesting the CheddarGetter service
__construct(\Zend_Http_Client $client)
Constructor
Accepts a Zend_Http_Client argument enabling the implementer to use a custom client (custom stream context, etc). Unless specified, a default client is used with some common stream context options
\Zend_Http_Client | $client |
Throws an exception if Zend_Http_Client is not available.
request(string $url, string $username, string $password, array|null $args) : string
Execute CheddarGetter API request
string | $url | Url to the API action |
string | $username | Username |
string | $password | Password |
array|null | $args | HTTP post key value pairs |
A Zend_Http_Client_Exception may be thrown under a number of conditions but most likely if the tcp socket fails to connect.
Body of the response from the CheddarGetter API