0)) { throw new \Exception($error); } curl_close($ch); return $response; } catch (\Exception $e) { throw $e; } } }