Skip to content

Commit

Permalink
adds slack example
Browse files Browse the repository at this point in the history
  • Loading branch information
trp07 committed Jan 23, 2018
1 parent 4ce3ad5 commit d3ae03e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,19 @@ Examples
>>> t.send_async() # send asynchronously
**Slack - Inbound Webhook API**

.. code-block:: python
>>> from messages import SlackWebHook
>>> msg = 'Hello,\n\tTry this new package called "messages"!'
>>> s = SlackWebHook('webhook_url', msg, attach_urls='https://imgs.xkcd.com/comics/python.png')
>>>
>>> s.send() # send synchronously
>>> s.send_async() # send asynchronously
Contributing
------------
- **Help Wanted!**
Expand Down

0 comments on commit d3ae03e

Please sign in to comment.