Update docs for search function

pull/114/head
Lorenz Diener 2017-12-13 17:55:14 +01:00
rodzic 48d54effc8
commit d7d8f153a3
2 zmienionych plików z 13 dodań i 1 usunięć

Wyświetl plik

@ -340,6 +340,18 @@ Card dicts
'provider_url': # URL pointing to the embeds provider
}
Search result dicts
~~~~~~~~~~~~~~~~~~~
.. code-block:: python
mastodon.search(...)
# Returns the folowing dictionary
{
'accounts': # List of account dicts resulting from the query
'hashtags': # List of hashtag dicts resulting from the query
'statuses': # List of toot dicts resulting from the query
}
Instance dicts
~~~~~~~~~~~~~~
.. code-block:: python

Wyświetl plik

@ -601,7 +601,7 @@ class Mastodon:
Fetch matching hashtags, accounts and statuses. Will search federated
instances if resolve is True.
Returns a dict of lists.
Returns a search result dict.
"""
params = self.__generate_params(locals())
return self.__api_request('GET', '/api/v1/search', params)