From d3ae03e2aa5a8689f9a06258612e19cd5594b581 Mon Sep 17 00:00:00 2001 From: Timoteo Date: Mon, 22 Jan 2018 22:19:21 -0500 Subject: [PATCH] adds slack example --- README.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.rst b/README.rst index b415c25..517d024 100644 --- a/README.rst +++ b/README.rst @@ -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!**