/** * @param string $method Http::METHOD_ * @param string $uri * @param array $options Request options to apply to the given * request and to the transfer. * @return array response * @throws ClientException */ public function sendRequest($method, $uri, array $options = []) { $request = $this->createRequest($method, $uri); return $this->processResponse($this->client->send($request, $options)); }
/** * @param AuthenticationInterface $authentication */ public function setAuthentication(AuthenticationInterface $authentication) { $this->client->setAuthentication($authentication); }