PHP Interface Larabros\Elogram\Http\Clients\AdapterInterface

Exibir arquivo Open project: larabros/elogram

Public Methods

Method Description
paginate ( Response $response, integer | null $limit = null ) : Response Paginates a :php:class:Response.
request ( string $method, string $uri, array $parameters = [] ) : Response Sends a HTTP request. Use this method as a convenient way of making requests with built-in exception-handling.

Method Details

paginate() public method

Paginates a :php:class:Response.
public paginate ( Response $response, integer | null $limit = null ) : Response
$response Larabros\Elogram\Http\Response
$limit integer | null If not set, the client will paginate as far as possible
return Larabros\Elogram\Http\Response

request() public method

Sends a HTTP request. Use this method as a convenient way of making requests with built-in exception-handling.
public request ( string $method, string $uri, array $parameters = [] ) : Response
$method string
$uri string
$parameters array
return Larabros\Elogram\Http\Response