Skip to content

Instantly share code, notes, and snippets.

@d4n13lbc
Last active September 2, 2017 18:04
Embed
What would you like to do?

Slack test

pip install slackclient
from slackclient import SlackClient

slack_token = os.environ["SLACK_API_TOKEN"]
sc = SlackClient(slack_token)

sc.api_call(
  "chat.postMessage",
  channel="#python",
  text="Hello from Python! :tada:"
)

References

https://github.com/slackapi/python-slackclient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment