for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Guillermoandrae\Highrise\Http;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;
class GuzzleAdapter extends AbstractAdapter
{
public function getClient(): Client
if (!$this->client) {
$this->setClient(new Client([
'base_uri' => sprintf('https://%s.highrisehq.com', $this->getSubdomain()),
'headers' => [
'User-Agent' => static::HEADER_DEFAULT_USER_AGENT,
],
'auth' => [$this->getToken(), $this->getPassword()]
]));
}
return $this->client;
protected function send(string $method, string $uri, array $options = [])
$this->lastRequest = new Request($method, $uri);
$this->lastResponse = $this->getClient()->send($this->lastRequest, $options);