REST
class REST (View source)
This class implements the RESTful transport of apiServiceRequest()'s
Methods
static mixed
execute(ClientInterface $client, RequestInterface $request, string $expectedClass = null, array $config = [], array $retryMap = null)
Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries when errors occur.
static array
doExecute(ClientInterface $client, RequestInterface $request, string $expectedClass = null)
Executes a Psr\Http\Message\RequestInterface
static mixed|null
decodeHttpResponse(ResponseInterface $response, RequestInterface $request = null, string $expectedClass = null)
Decode an HTTP Response.
Details
static mixed
execute(ClientInterface $client, RequestInterface $request, string $expectedClass = null, array $config = [], array $retryMap = null)
Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries when errors occur.
static array
doExecute(ClientInterface $client, RequestInterface $request, string $expectedClass = null)
Executes a Psr\Http\Message\RequestInterface
static mixed|null
decodeHttpResponse(ResponseInterface $response, RequestInterface $request = null, string $expectedClass = null)
Decode an HTTP Response.