public function syncRequest($method = 'GET', $uri = '', $payload = [], $headers = [])
{
$request = $this->buildRequest($method, $uri, $payload, $headers);
try {
return new SparkPostResponse($this->httpClient->sendRequest($request));
} catch (\Exception $exception) {
throw new SparkPostException($exception);
}
}