aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastodon/Mastodon.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index def3859..f3861c2 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -401,6 +401,17 @@ class Mastodon:
401 """ 401 """
402 params = self.__generate_params(locals()) 402 params = self.__generate_params(locals())
403 return self.__api_request('GET', '/api/v1/accounts/search', params) 403 return self.__api_request('GET', '/api/v1/accounts/search', params)
404
405
406 def content_search(self, q, resolve = False):
407 """
408 Fetch matching hashtags, accounts and statuses. Will search federated
409 instances if resolve is True.
410
411 Returns a dict of lists.
412 """
413 params = self.__generate_params(locals())
414 return self.__api_request('GET', '/api/v1/search', params)
404 415
405 ### 416 ###
406 # Reading data: Mutes and Blocks 417 # Reading data: Mutes and Blocks
Powered by cgit v1.2.3 (git 2.41.0)