This is the main method to derive when creating an operator.Ĭontext is the same dictionary used as when rendering jinja templates. Which sets self.api_call_params with a dict ofĪPI call parameters ( ) execute ( ** kwargs ) ¶ Having a construct_api_call_params function Of the api_call_params dict before constructionĮach SlackAPIOperator child class is responsible for OptionalĬlient_args – Slack Hook parameters. OptionalĪpi_params ( dict | None) – API Method call parameters ( ). Method ( str | None) – The Slack API Method to Call ( ). Token ( str | None) – Slack API token ( ). Slack_conn_id ( str | None) – Slack API Connection Only one of slack_conn_id and token is required. In the future additional Slack API Operators will be derived from this class as well. ![]() The SlackAPIPostOperator is derived from this operator. SlackAPIOperator ( *, slack_conn_id = None, token = None, method = None, api_params = None, ** kwargs ) ¶ You must complete the settings of Event Subscriptions to make your bot work.Class .slack. If you are not familiar with Event Subscriptions, you may refer to another Bottender doc, Slack Setup. ![]() And you can fill in the same webhook URL for Event Subscriptions and Interactive Components.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |