src/ForecastClient.php
protected function request($method, $uri, array $options = array())
    {
        $response = $this->guzzle->request($method, $uri, $options);

        if ($response->getStatusCode() < 200 || $response->getStatusCode() > 400) {
            throw new ForecastException('Forecast API error: ' . $response->getReasonPhrase(), $response->getStatusCode());
        }

        return json_decode($response->getBody()->getContents(), true);
    }
protected function request($method, $uri, array $options = array())
    {
        $response = $this->guzzle->request($method, $uri, $options);

        if ($response->getStatusCode() < 200 || $response->getStatusCode() > 400) {
            throw new ForecastException('Forecast API error: ' . $response->getReasonPhrase(), $response->getStatusCode());
        }

        return json_decode($response->getBody()->getContents(), true);
    }
@param string $method
@param string $uri
@param array $options

@return array
@throws ForecastException