logentries_api/special_alerts.py
def _api_get(self, url, **kwargs):
        """
        Convenience method for getting
        """
        response = self.session.get(
            url=url,
            headers=self._get_api_headers(),
            **kwargs
        )
        if not response.ok:
            raise ServerException(
                '{0}: {1}'.format(
                    response.status_code,
                    response.text or response.reason
                ))
        return response.json()
def _api_get(self, url, **kwargs):
        response = self.session.get(
            url=url,
            headers=self._get_api_headers(),
            **kwargs
        )
        if not response.ok:
            raise ServerException(
                '{0}: {1}'.format(
                    response.status_code,
                    response.text or response.reason
                ))
        return response.json()
def _api_get ( self , url , * * kwargs ) : response = self . session . get ( url = url , headers = self . _get_api_headers ( ) , * * kwargs ) if not response . ok : raise ServerException ( '{0}: {1}' . format ( response . status_code , response . text or response . reason ) ) return response . json ( )
Convenience method for getting
Convenience method for getting