def get_bitsight_data(self, url, query_parameter=None):
        """Fetch data from BitSight APIs.

        Args:
            url (str): URL of the API endpoint.
            query_parameter (json, optional): Query parameters for the API. Defaults to None.

        Returns:
            json: Response of the API.

        Raises:
            BitSightException: Raised if an error occurs during the API request.
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            resp = requests.get(url=url, headers=self.headers, params=query_parameter)
            if resp.status_code == 403:
                applogger.info("BitSight: get_bitsight_data: {} url={}".format(self.messages.get(resp.status_code, ""), url))
                return None
            resp.raise_for_status()
            response = resp.json()
            applogger.debug(
                "BitSight: get_bitsight_data: Successfully got response for url: {}".format(
                    url
                )
            )
            return response
        except requests.exceptions.Timeout as err:
            applogger.exception("BitSight: Request Timeout for {}: {}".format(url, err))
            raise BitSightException()
        except requests.ConnectionError as err:
            applogger.error(
                self.error_logs.format(self.logs_starts_with, __method_name, err)
            )
            raise BitSightException()
        except requests.HTTPError as err:
            applogger.error(
                self.error_logs.format(self.logs_starts_with, __method_name, err)
            )
            raise BitSightException()
        except requests.RequestException as err:
            applogger.error(
                self.error_logs.format(self.logs_starts_with, __method_name, err)
            )
            raise BitSightException()
        except Exception as err:
            applogger.exception(
                "BitSight: GET BITSIGHT DATA FOR {}: {}".format(url, err)
            )
            raise BitSightException()
Fetch data from BitSight APIs.

        Args:
            url (str): URL of the API endpoint.
            query_parameter (json, optional): Query parameters for the API. Defaults to None.

        Returns:
            json: Response of the API.

        Raises:
            BitSightException: Raised if an error occurs during the API request.
        
Solutions/BitSight/Data Connectors/BitSightDataConnector/SharedCode/bitsight_client.py