public function request($method = 'GET', $uri = '', $payload = [], $headers = []) { if (is_array($uri)) { $headers = $payload; $payload = $uri; $uri = ''; } $uri = $this->endpoint . '/' . $uri; return $this->sparkpost->request($method, $uri, $payload, $headers); }