def authentication(self, client_id, client_secret):
        """To authenticate with DataminrPulse account.

        Args:
            client_id (str): clientid of Dataminr account to authenticate with it.
            client_secret (str): clientsecret of Dataminr account to authenticate with it.

        Raises:
            DataminrPulseException: raises when any error occurs.
        """
        try:
            __method_name = inspect.currentframe().f_code.co_name
            body = {
                "grant_type": "api_key",
                "client_id": client_id,
                "client_secret": client_secret,
            }
            auth_response = self.make_rest_call(
                self.auth_endpoint, "POST", self.auth_headers, body=body
            )
            if auth_response.status_code == 200:
                applogger.info(
                    "{}(method={}) Successfully authenticated with DataminrPulse account.".format(
                        self.logs_starts_with, __method_name
                    )
                )
                json_auth_response = auth_response.json()
                access_token = json_auth_response.get("dmaToken")
                self.headers.update({"Authorization": "Dmauth {}".format(access_token)})
            else:
                applogger.error(
                    "{}(method={}) Error while authenticating with DataminrPulse account.".format(
                        self.logs_starts_with,
                        __method_name,
                    )
                )
                raise DataminrPulseException(auth_response.text)
        except DataminrPulseException as err:
            raise DataminrPulseException(err)
        except Exception as err:
            applogger.error(
                "{}".format(
                    self.error_logs.format(self.logs_starts_with, __method_name, err)
                )
            )
            raise DataminrPulseException(err)
To authenticate with DataminrPulse account.

        Args:
            client_id (str): clientid of Dataminr account to authenticate with it.
            client_secret (str): clientsecret of Dataminr account to authenticate with it.

        Raises:
            DataminrPulseException: raises when any error occurs.
        
Solutions/Dataminr Pulse/Data Connectors/DataminrPulseAlerts/DataminrPulseAlertsManualActivity/dataminrpulse_integration_settings.py