def make_request(self, method: str, path: str, json_data: dict=None, params: dict=None) -> requests.Response:
    try:
        response = requests.request(method=method, url=f'{self.url}/{path}', headers={'Content-Type': 'application/json'}, verify=True, params=params, json=json_data, auth=HTTPBasicAuth(self.account_id, self.api_key))
        if (response.status_code == 401):
            raise PluginException(preset=PluginException.Preset.USERNAME_PASSWORD, data=response.text)
        if (response.status_code == 403):
            raise PluginException(preset=PluginException.Preset.API_KEY, data=response.text)
        if (response.status_code == 404):
            raise PluginException(preset=PluginException.Preset.NOT_FOUND, data=response.text)
        if (400 <= response.status_code < 500):
            raise PluginException(preset=PluginException.Preset.UNKNOWN, data=response.text)
        if (response.status_code >= 500):
            raise PluginException(preset=PluginException.Preset.SERVER_ERROR, data=response.text)
        if (200 <= response.status_code < 300):
            return response
        raise PluginException(preset=PluginException.Preset.UNKNOWN, data=response.text)
    except requests.exceptions.HTTPError as e:
        raise PluginException(preset=PluginException.Preset.UNKNOWN, data=e)
def make_request(self, method: str, path: str, json_data: dict=None, params: dict=None) -> requests.Response:
    try:
        response = requests.request(method=method, url=f'{self.url}/{path}', headers={'Content-Type': 'application/json'}, verify=True, params=params, json=json_data, auth=HTTPBasicAuth(self.account_id, self.api_key))
        if (response.status_code == 401):
            raise PluginException(preset=PluginException.Preset.USERNAME_PASSWORD, data=response.text)
        if (response.status_code == 403):
            raise PluginException(preset=PluginException.Preset.API_KEY, data=response.text)
        if (response.status_code == 404):
            raise PluginException(preset=PluginException.Preset.NOT_FOUND, data=response.text)
        if (400 <= response.status_code < 500):
            raise PluginException(preset=PluginException.Preset.UNKNOWN, data=response.text)
        if (response.status_code >= 500):
            raise PluginException(preset=PluginException.Preset.SERVER_ERROR, data=response.text)
        if (200 <= response.status_code < 300):
            return response
        raise PluginException(preset=PluginException.Preset.UNKNOWN, data=response.text)
    except requests.exceptions.HTTPError as e:
        raise PluginException(preset=PluginException.Preset.UNKNOWN, data=e)