aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-07-30 15:38:51 +0200
committerLorenz Diener <[email protected]>2018-07-30 15:38:51 +0200
commit5576c190ad98eca700ee797332410fc043f05931 (patch)
tree7f7ae3aeae22e5a8948fda8d9367f768570f6028 /mastodon
parent3f91aaf1eab15a0a21cbc994ce1821c96febd4ce (diff)
downloadmastodon.py-5576c190ad98eca700ee797332410fc043f05931.tar.gz
Search v2
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index b997402..7c16e5c 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -848,6 +848,17 @@ class Mastodon:
848 params = self.__generate_params(locals()) 848 params = self.__generate_params(locals())
849 return self.__api_request('GET', '/api/v1/search', params) 849 return self.__api_request('GET', '/api/v1/search', params)
850 850
851 @api_version("2.4.3", "2.4.3", __DICT_VERSION_SEARCHRESULT)
852 def search_v2(self, q, resolve=False):
853 """
854 Identical to `search()`, except in that it returns tags as
855 `tag dicts`_.
856
857 Returns a `search result dict`_.
858 """
859 params = self.__generate_params(locals())
860 return self.__api_request('GET', '/api/v2/search', params)
861
851 ### 862 ###
852 # Reading data: Lists 863 # Reading data: Lists
853 ### 864 ###
Powered by cgit v1.2.3 (git 2.41.0)