You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-13Lines changed: 19 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,16 @@
1
1
# Python slackclient
2
+
2
3
The Python slackclient is a developer kit for interfacing with the Slack Web API and Real Time Messaging (RTM) API on Python 3.6 and above.
3
4
5
+
**Comprehensive documentation on using the Slack Python can be found at [https://slack.dev/python-slackclient/](https://slack.dev/python-slackclient/)**
Whether you're building a custom app for your team, or integrating a third party service into your Slack workflows, Slack Developer Kit for Python allows you to leverage the flexibility of Python to get your project up and running as quickly as possible.
13
15
14
16
The **Python slackclient** allows interaction with:
@@ -18,7 +20,7 @@ The **Python slackclient** allows interaction with:
18
20
19
21
If you want to use our [Events API][events-docs], please check the [Slack Events API adapter for Python][python-slack-events-api].
20
22
21
-
Details on the Tokens and Authentication can be found in our [Auth Guide][auth-guide].
23
+
Details on the Tokens and Authentication can be found in our [Auth Guide][https://slack.dev/python-slackclient/auth.html].
22
24
23
25
## Table of contents
24
26
@@ -30,19 +32,20 @@ Details on the Tokens and Authentication can be found in our [Auth Guide][auth-g
30
32
*[Uploading files to Slack](#uploading-files-to-slack)
31
33
*[Basic Usage of the RTM Client](#basic-usage-of-the-rtm-client)
32
34
*[Async Usage](#async-usage)
33
-
*[Slackclient as a script](slackclient-as-a-script)
34
-
*[Slackclient in a framework](slackclient-in-a-framework)
35
+
*[Slackclient as a script](#slackclient-as-a-script)
36
+
*[Slackclient in a framework](#slackclient-in-a-framework)
35
37
*[Advanced Options](#advanced-options)
36
38
*[Migrating from v1.x](#migrating-from-v1)
37
39
*[Support](#support)
38
40
39
41
### Requirements
42
+
40
43
---
44
+
41
45
This library requires Python 3.6 and above. If you require Python 2, please use our [SlackClient - v1.x][slackclientv1]. If you're unsure how to check what version of Python you're on, you can check it using the following:
42
46
43
47
> **Note:** You may need to use `python3` before your commands to ensure you use the correct Python path. e.g. `python3 --version`
44
48
45
-
46
49
```bash
47
50
python --version
48
51
@@ -55,23 +58,23 @@ python3 --version
55
58
56
59
We recommend using [PyPI][pypi] to install the Slack Developer Kit for Python.
57
60
58
-
59
61
```bash
60
62
$ pip3 install slackclient
61
63
```
62
64
63
65
### Getting started tutorial
66
+
64
67
---
65
68
66
69
We've created this [tutorial](/tutorial) to build a basic Slack app in less than 10 minutes. It requires some general programming knowledge, and Python basics. It focuses on the interacting with Slack's Web and RTM API. Use it to give you an idea of how to use this SDK.
67
70
68
71
**[Read the tutorial to get started!](/tutorial)**
69
72
70
73
### Basic Usage of the Web Client
71
-
---
72
74
73
-
Slack provide a Web API that gives you the ability to build applications that interact with Slack in a variety of ways. This Development Kit is a module based wrapper that makes interaction with that API easier. We have a basic example here with some of the more common uses but a full list of the available methods are available [here][api-methods]. More detailed examples can be found in our [Basic Usage][basic-usage] guide
75
+
---
74
76
77
+
Slack provide a Web API that gives you the ability to build applications that interact with Slack in a variety of ways. This Development Kit is a module based wrapper that makes interaction with that API easier. We have a basic example here with some of the more common uses but a full list of the available methods are available [here][api-methods]. More detailed examples can be found in our [Basic Usage][https://slack.dev/python-slackclient/basic_usage.html] guide
75
78
76
79
#### Sending a message to Slack
77
80
@@ -92,7 +95,6 @@ One of the most common use-cases is sending a message to Slack. If you want to s
92
95
93
96
Here we also ensure that the response back from Slack is a successful one and that the message is the one we sent by using the `assert` statement.
94
97
95
-
96
98
#### Uploading files to Slack
97
99
98
100
We've changed the process for uploading files to Slack to be much easier and straight forward. You can now just include a path to the file directly in the API call and upload it that way. You can find the details on this api call [here][files.upload]
@@ -110,6 +112,7 @@ We've changed the process for uploading files to Slack to be much easier and str
110
112
```
111
113
112
114
### Basic Usage of the RTM Client
115
+
113
116
---
114
117
115
118
The [Real Time Messaging (RTM) API][rtm-docs] is a WebSocket-based API that allows you to receive events from Slack in real time and send messages as users.
@@ -216,36 +219,39 @@ Interested in SSL or Proxy support? Simply use their built-in [SSL](https://docs
We will always follow the standard process in AIOHttp for those proxy and SSL settings so for more information, check out their documentation page linked [here][aiohttp].
225
228
226
229
### Migrating from v1
230
+
227
231
---
228
-
If you're migrating from v1.x of slackclient to v2.x, Please follow our migration guide to ensure your app continues working after updating.
232
+
233
+
If you're migrating from v1.x of slackclient to v2.x, Please follow our migration guide to ensure your app continues working after updating.
229
234
230
235
**[Check out the Migration Guide here!](https://github.com/slackapi/python-slackclient/wiki/Migrating-to-2.x)**
231
236
232
237
### Support
238
+
233
239
---
234
240
235
241
If you get stuck, we’re here to help. The following are the best ways to get assistance working through your issue:
236
242
237
243
Use our [Github Issue Tracker][gh-issues] for reporting bugs or requesting features.
238
244
Visit the [Bot Developer Hangout][bd-hangout] for getting help using Slack Developer Kit for Python or just generally bond with your fellow Slack developers.
0 commit comments