Larabros\Elogram\Http\Clients\AbstractAdapter¶
-
class
AbstractAdapter¶ An abstract HTTP client adapter.
-
request($method, $uri, $parameters =[])¶ -
Parameters: - $method –
- $uri –
- $parameters –
-
resolveExceptionClass(ClientException $exception)¶ Parses a
ClientExceptionfor any specific exceptions thrown by the API in the response body. If the response body is not in JSON format, anExceptionis returned.Check a
ClientExceptionto see if it has an associatedResponseInterfaceobject.Parameters: - $exception (ClientException) –
Returns: Exception
-