/** {@inheritdoc} */
public function send($endpoint, $payload)
{
$this->lastResponse = $this->lastException = null;
$this->lastRequest = $payload;
try {
$this->lastResponse = $this->transport->send($endpoint, $payload);
return $this->lastResponse;
} catch (Exception $e) {
$this->lastException = $e;
throw $e;
}
}