Skip to main content

Python Support

Client Initialization

Use this helper function from the AutoKitteh Python SDK:

from autokitteh.slack import slack_client

slack = slack_client("autokitteh_connection_name")

This helper function is documented here.

The code above uses the AutoKitteh connection's authentication details automatically, and is equivalent to this code snippet

from slack_sdk.web.client import WebClient

client = WebClient(bot_token)
client.auth_test().validate()

References

Code Samples