def __get_raw()

in wadebug/wa_actions/wabiz_api.py [0:0]


    def __get_raw(self, endpoint):
        res = requests.get(
            url=urljoin(self.api_baseUrl, endpoint),
            headers=self.api_header,
            verify=False,  # disable ssl verification
        )

        if res.status_code == 401:
            raise exceptions.WABizAuthError(
                "API authentication error.  Please check your configuration."
            )

        if res.status_code < 200 or res.status_code > 299:
            res_json = res.json()
            self.__checkForErrors(res_json, endpoint)

        # res.status = 200 OK
        return res.content