PHP Class Larabros\Elogram\Http\Clients\AbstractAdapter

Inheritance: implements Larabros\Elogram\Http\Clients\AdapterInterface
Afficher le fichier Open project: larabros/elogram

Méthodes publiques

Méthode Description
paginate ( Response $response, $limit = null ) {@inheritDoc}
request ( $method, $uri, array $parameters = [] ) {@inheritDoc}

Méthodes protégées

Méthode Description
resolveExceptionClass ( GuzzleHttp\Exception\ClientException $exception ) : Larabros\Elogram\Exceptions\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.

Method Details

paginate() public méthode

{@inheritDoc}
public paginate ( Response $response, $limit = null )
$response Larabros\Elogram\Http\Response

request() abstract public méthode

{@inheritDoc}
abstract public request ( $method, $uri, array $parameters = [] )
$parameters array

resolveExceptionClass() protected méthode

Check a ClientException to see if it has an associated ResponseInterface object.
protected resolveExceptionClass ( GuzzleHttp\Exception\ClientException $exception ) : Larabros\Elogram\Exceptions\Exception
$exception GuzzleHttp\Exception\ClientException
Résultat Larabros\Elogram\Exceptions\Exception