public function getAlerts()
    {
        if (! isset($this->config['access_token'])) {
            throw new Exception('StatHat Alerts API Access Token not set.');
        }

        $result = $this->curlGet($this->alerts_url.'/x/'.$this->config['access_token'].'/alerts');

        return $result;
    }
public function getAlerts()
    {
        if (! isset($this->config['access_token'])) {
            throw new Exception('StatHat Alerts API Access Token not set.');
        }

        $result = $this->curlGet($this->alerts_url.'/x/'.$this->config['access_token'].'/alerts');

        return $result;
    }
public function getAlerts ( ) { if ( ! isset ( $ this -> config [ 'access_token' ] ) ) { throw new Exception ( 'StatHat Alerts API Access Token not set.' ) ; } $ result = $ this -> curlGet ( $ this -> alerts_url . '/x/' . $ this -> config [ 'access_token' ] . '/alerts' ) ; return $ result ; }
Get listing of all stat alerts using the Alerts API.

@see https://www.stathat.com/manual/alerts_api
@throws \Exception
Get listing of all stat alerts using the Alerts API .