aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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)