Larabros\Elogram\Http\Clients\AbstractAdapter

class AbstractAdapter

An abstract HTTP client adapter.

request($method, $uri, $parameters =[])

{@inheritDoc}

Parameters:
  • $method
  • $uri
  • $parameters
paginate(Response $response, $limit = null)

{@inheritDoc}

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, an Exception is returned.

Check a ClientException to see if it has an associated ResponseInterface object.

Parameters:
  • $exception (ClientException) –
Returns:

Exception