Skip to content

Files

Latest commit

882d1ad · Nov 18, 2016

History

History
34 lines (23 loc) · 582 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 582 Bytes

Slack Webhooks API Client

A small api for interacting with Slack Webhooks

Thanks

Inspired by slackr.

Example

from webhooks import IncomingWebhook
webhook_url = `https://hooks.slack.com/services/XXXXXXXXX/YYYYYYYYY/ZZZZZZZZZZZZZZZZZZZZZZZZ`
wh = IncomingWebhook(url=webhook_url)
r = wh.message('test message')
print(r.text)

Installation

$ pip install slack-webhooks

or

$ python setup.py install

Resources