Skip to content

Commit b940063

Browse files
author
Jim Ray
committed
Fixed a few broken links and code sample errors
1 parent b3a4227 commit b940063

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ In our example below, we watch for a [message event][message-event] that contain
146146
)
147147

148148
slack_token = os.environ["SLACK_API_TOKEN"]
149-
rtm_client = slack.RTMClient(slack_token)
149+
rtm_client = slack.RTMClient(token=slack_token)
150150
rtm_client.start()
151151
```
152152

docs-src/auth.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ To configure your app for OAuth, you'll need a client ID, a client secret, and a
5050
.. code-block:: python
5151
5252
import os
53+
import slack
5354
from flask import Flask, request
54-
from slackclient import SlackClient
5555
5656
client_id = os.environ["SLACK_CLIENT_ID"]
5757
client_secret = os.environ["SLACK_CLIENT_SECRET"]
@@ -109,6 +109,6 @@ If your Slack app includes a `bot user <https://api.slack.com/docs/bots>`_, the
109109
110110
Once your user has completed the OAuth flow, you'll be able to use the provided tokens to call any of Slack's API methods that require an access token.
111111

112-
See the :ref:`Web API usage <web-api-examples>` section of this documentation for usage examples.
112+
See the :ref:`Web API usage <basic_usage>` section of this documentation for usage examples.
113113

114114
.. include:: metadata.rst

docs-src/basic_usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ Here's a very basic example of how one might deal with rate limited requests.
300300
import time
301301
302302
slack_token = os.environ["SLACK_API_TOKEN"]
303-
client = slack.WebClient(slack_token)
303+
client = slack.WebClient(token=slack_token)
304304
305305
# Simple wrapper for sending a Slack message
306306
def send_slack_message(channel, message):

docs-src/faq.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ That's great! Thank you. Let us know on the `Issue Tracker`_. If you're feeling
1010
There's a feature missing!
1111
*******************************
1212

13-
There's always something more that could be added! You can let us know in the `Issue Tracker`_ to start a discussion around the proposed feature, that's a good start. If you're feeling particularly ambitious, why not write the feature yourself, and submit a `pull request`_! We love feedback and we love help and we don't bite. Much.
13+
There's always something more that could be added! You can let us know in the `Issue Tracker <https://github.com/slackapi/python-slackclient/issues>`_ to start a discussion around the proposed feature, that's a good start. If you're feeling particularly ambitious, why not write the feature yourself, and submit a `pull request <https://github.com/slackapi/python-slackclient/pulls>`_! We love feedback and we love help and we don't bite. Much.
1414

1515
How do I contribute?
1616
*********************************
1717

18-
What an excellent question. First of all, please have a look at our general `contributing guidelines`_.
18+
What an excellent question. First of all, please have a look at our general `contributing guidelines <https://github.com/slackapi/python-slackclient/blob/master/.github/contributing.md>`_.
1919

20-
All done? Great! While we're super excited to incorporate your new feature into |product_name|, there are a couple of things we want to make sure you've given thought to.
20+
All done? Great! While we're super excited to incorporate your new feature, there are a couple of things we want to make sure you've given thought to.
2121

2222
- Please write unit tests for your new code. But don't **just** aim to increase the test coverage, rather, we expect you
2323
to have written **thoughtful** tests that ensure your new feature will continue to work as expected, and to help future

0 commit comments

Comments
 (0)