original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get listing of all stat alerts using the Alerts API.
  
  @see https://www.stathat.com/manual/alerts_api
  @throws \Exception
docstring_tokens: Get listing of all stat alerts using the Alerts API .