diff options
author | Lorenz Diener <[email protected]> | 2017-12-13 17:55:14 +0100 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2017-12-13 17:55:14 +0100 |
commit | d7d8f153a31b76493daf68a44e01d4c4e11b180d (patch) | |
tree | a9f567fc42b82e1a8749f078159c5b8c84bc0a49 /docs | |
parent | 48d54effc8444b7f119ded786a6e750accf22027 (diff) | |
download | mastodon.py-d7d8f153a31b76493daf68a44e01d4c4e11b180d.tar.gz |
Update docs for search function
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/index.rst b/docs/index.rst index fe92636..da670b1 100644 --- a/docs/index.rst +++ b/docs/index.rst | |||
@@ -340,6 +340,18 @@ Card dicts | |||
340 | 'provider_url': # URL pointing to the embeds provider | 340 | 'provider_url': # URL pointing to the embeds provider |
341 | } | 341 | } |
342 | 342 | ||
343 | Search result dicts | ||
344 | ~~~~~~~~~~~~~~~~~~~ | ||
345 | .. code-block:: python | ||
346 | |||
347 | mastodon.search(...) | ||
348 | # Returns the folowing dictionary | ||
349 | { | ||
350 | 'accounts': # List of account dicts resulting from the query | ||
351 | 'hashtags': # List of hashtag dicts resulting from the query | ||
352 | 'statuses': # List of toot dicts resulting from the query | ||
353 | } | ||
354 | |||
343 | Instance dicts | 355 | Instance dicts |
344 | ~~~~~~~~~~~~~~ | 356 | ~~~~~~~~~~~~~~ |
345 | .. code-block:: python | 357 | .. code-block:: python |