SlackAPIOperator

Slack

Base Slack Operator The SlackAPIPostOperator is derived from this operator. In the future additional Slack API Operators will be derived from this class as well. Only one of slack_conn_id and token is required.

View on GitHub

Last Updated: Oct. 23, 2022

Access Instructions

Install the Slack provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

slack_conn_idSlack API Connection which its password is Slack API token. Optional
tokenSlack API token (https://api.slack.com/web). Optional
methodThe Slack API Method to Call (https://api.slack.com/methods). Optional
api_paramsAPI Method call parameters (https://api.slack.com/methods). Optional
client_argsSlack Hook parameters. Optional. Check airflow.providers.slack.hooks.SlackHook

Documentation

Base Slack Operator The SlackAPIPostOperator is derived from this operator. In the future additional Slack API Operators will be derived from this class as well. Only one of slack_conn_id and token is required.

Was this page helpful?