Larabros\Elogram\Http\Clients\GuzzleAdapter¶
-
class
GuzzleAdapter
¶ A HTTP client adapter for Guzzle.
-
property
guzzle
¶ protected ClientInterface
The Guzzle client instance.
-
__construct
(ClientInterface $guzzle)¶ Creates a new instance of
GuzzleAdapter
.Parameters: - $guzzle (ClientInterface) –
-
request
($method, $uri, $parameters =[])¶ -
Parameters: - $method –
- $uri –
- $parameters –
-
resolveExceptionClass
(ClientException $exception)¶ Parses a
ClientException
for any specific exceptions thrown by the API in the response body. If the response body is not in JSON format, anException
is returned.Check a
ClientException
to see if it has an associatedResponseInterface
object.Parameters: - $exception (ClientException) –
Returns: Exception
-
property