private function execute($endpoint, $method, $payload, $headers = array()) { $curl = CURL::newCURL($endpoint, $method); $request = Request::newRequest($payload, $headers); $response = $curl->send($request); $object = $this->convert($response); unset($curl); return $object; }