def make_rest_call(
        self, endpoint, request_method, api_headers, params=None, body=None
    ):
        """To call DataminrPulse API.

        Args:
            endpoint (str): endpoint to call.
            request_method: method to use for requesting an endpoint.(POST/GET)
            params (json, optional): query parameters to pass in API call. Defaults to None.
            body (json, optional): Request body to pass in API call. Defaults to None.

        Returns:
            json: returns json response if API call succeed.
        """
        try:
            __method_name = inspect.currentframe().f_code.co_name
            applogger.debug(
                "{}(method={}) Calling DataminrPulse API for endpoint={}".format(
                    self.logs_starts_with, __method_name, endpoint
                )
            )
            dataminr_api_url = "{}{}".format(self.base_url, endpoint)
            response = requests.request(
                method=request_method,
                url=dataminr_api_url,
                headers=api_headers,
                params=params,
                data=body,
            )
            if response.status_code == 400:
                applogger.error(
                    "{}(method={}) The format of the request is incorrect. {}(StatusCode={})".format(
                        self.logs_starts_with,
                        __method_name,
                        response.text,
                        response.status_code,
                    )
                )
            elif response.status_code == 401:
                applogger.error(
                    "{}(method={}) Invalid dma token. {}(StatusCode={})".format(
                        self.logs_starts_with,
                        __method_name,
                        response.text,
                        response.status_code,
                    )
                )
            elif response.status_code == 403:
                applogger.error(
                    "{}(method={}) Not permitted to access this resource.{} (StatusCode={})".format(
                        self.logs_starts_with,
                        __method_name,
                        response.text,
                        response.status_code,
                    )
                )
            elif response.status_code == 500:
                applogger.error(
                    "{}(method={}) The Dataminr server experienced an error. {}(StatusCode={})".format(
                        self.logs_starts_with,
                        __method_name,
                        response.text,
                        response.status_code,
                    )
                )
            elif response.status_code == 200:
                applogger.debug(
                    "{}(method={}) request to endpoint {} is completed successfully.".format(
                        self.logs_starts_with, __method_name, endpoint
                    )
                )
            else:
                applogger.error(
                    "{}(method={}) Error while calling Dataminr API: StatusCode={} , Message={}".format(
                        self.logs_starts_with,
                        __method_name,
                        response.status_code,
                        response.text,
                    )
                )
        except requests.ConnectionError as err:
            applogger.error(
                self.error_logs.format(self.logs_starts_with, __method_name, err)
            )
            raise DataminrPulseException(err)
        except requests.HTTPError as err:
            applogger.error(
                self.error_logs.format(self.logs_starts_with, __method_name, err)
            )
            raise DataminrPulseException(err)
        except requests.RequestException as err:
            applogger.error(
                self.error_logs.format(self.logs_starts_with, __method_name, err)
            )
            raise DataminrPulseException(err)
        except Exception as err:
            applogger.error(
                "{}(method={}) Exception{}".format(
                    self.logs_starts_with, __method_name, err
                )
            )
            raise DataminrPulseException(err)
        return response
To call DataminrPulse API.

        Args:
            endpoint (str): endpoint to call.
            request_method: method to use for requesting an endpoint.(POST/GET)
            params (json, optional): query parameters to pass in API call. Defaults to None.
            body (json, optional): Request body to pass in API call. Defaults to None.

        Returns:
            json: returns json response if API call succeed.
        
Solutions/Dataminr Pulse/Data Connectors/DataminrPulseAlerts/DataminrPulseAlertsManualActivity/dataminrpulse_integration_settings.py