Skip to content

Commit cce6528

Browse files
committed
Added file upload and regenerated docs
1 parent 1a27b1f commit cce6528

19 files changed

+10422
-84
lines changed

docs-src/basic_usage.rst

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,29 @@ Get a list of team members
310310
311311
See `users.list <https://api.slack.com/methods/users.list>`_ for more info.
312312

313-
.. include:: metadata.rst
313+
314+
--------
315+
316+
Uploading files
317+
------------------------------
318+
319+
.. code-block:: python
320+
321+
from slackclient import SlackClient
322+
323+
slack_token = os.environ["SLACK_API_TOKEN"]
324+
sc = SlackClient(slack_token)
325+
326+
with open('thinking_very_much.png') as file_content:
327+
sc.api_call(
328+
"files.upload",
329+
channels="C3UKJTQAC",
330+
file=file_content,
331+
title="Test upload"
332+
)
333+
334+
See `users.list <https://api.slack.com/methods/files.upload>`_ for more info.
335+
314336

315337
--------
316338

@@ -360,3 +382,5 @@ containing the number of seconds until you can retry.
360382
361383
See the documentation on `Rate Limiting <https://api.slack.com/docs/rate-limits>`_ for more info.
362384

385+
.. include:: metadata.rst
386+

docs/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 59efe32fc6b880b69f0bafedda8f3fec
3+
config: cb6db95cfbbc8b1d17ec073199ab6265
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_static/basic.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,21 @@ div.sphinxsidebar input {
8282
}
8383

8484
div.sphinxsidebar #searchbox input[type="text"] {
85-
width: 170px;
85+
float: left;
86+
width: 80%;
87+
padding: 0.25em;
88+
box-sizing: border-box;
89+
}
90+
91+
div.sphinxsidebar #searchbox input[type="submit"] {
92+
float: left;
93+
width: 20%;
94+
border-left: none;
95+
padding: 0.25em;
96+
box-sizing: border-box;
8697
}
8798

99+
88100
img {
89101
border: 0;
90102
max-width: 100%;
@@ -199,6 +211,11 @@ table.modindextable td {
199211

200212
/* -- general body styles --------------------------------------------------- */
201213

214+
div.body {
215+
min-width: 450px;
216+
max-width: 800px;
217+
}
218+
202219
div.body p, div.body dd, div.body li, div.body blockquote {
203220
-moz-hyphens: auto;
204221
-ms-hyphens: auto;
@@ -332,6 +349,11 @@ table.docutils {
332349
border-collapse: collapse;
333350
}
334351

352+
table.align-center {
353+
margin-left: auto;
354+
margin-right: auto;
355+
}
356+
335357
table caption span.caption-number {
336358
font-style: italic;
337359
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var DOCUMENTATION_OPTIONS = {
2+
URL_ROOT: '',
3+
VERSION: '1.0.1',
4+
LANGUAGE: 'None',
5+
COLLAPSE_INDEX: false,
6+
FILE_SUFFIX: '.html',
7+
HAS_SOURCE: true,
8+
SOURCELINK_SUFFIX: '.txt'
9+
};

0 commit comments

Comments
 (0)