public function send($method, $endpoint, $data = [])
	{
		try
		{
			$request = $this->client->createRequest($method, $endpoint, ['body' => json_encode($data)]);
			return new Response($this->client->send($request));
		}
		catch(GuzzleExceptions\RequestException $e)
		{
			// pass the exception to a helper method,
			// which will figure our what kind of 
			// exception to throw
			return $this->handleError($e);
		}
	}
public function send($method, $endpoint, $data = [])
	{
		try
		{
			$request = $this->client->createRequest($method, $endpoint, ['body' => json_encode($data)]);
			return new Response($this->client->send($request));
		}
		catch(GuzzleExceptions\RequestException $e)
		{
			// pass the exception to a helper method,
			// which will figure our what kind of 
			// exception to throw
			return $this->handleError($e);
		}
	}
public function send ( $ method , $ endpoint , $ data = [ ] ) { try { $ request = $ this -> client -> createRequest ( $ method , $ endpoint , [ 'body' => json_encode ( $ data ) ] ) ; return new Response ( $ this -> client -> send ( $ request ) ) ; } catch ( GuzzleExceptions \ RequestException $ e ) { // pass the exception to a helper method, // which will figure our what kind of  // exception to throw return $ this -> handleError ( $ e ) ; } }
Wraps HTTP call into a good mould

@param  string $method
@param  string $endpoint
@param  array $data
@return Horntell\Http\Response
@throws Horntell\Errors\*
Wraps HTTP call into a good mould