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 9967bdb..48296e5 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -332,6 +332,17 @@ class Mastodon:
332 """ 332 """
333 params = self.__generate_params(locals()) 333 params = self.__generate_params(locals())
334 return self.__api_request('GET', '/api/v1/accounts/search', params) 334 return self.__api_request('GET', '/api/v1/accounts/search', params)
335
336
337 def content_search(self, q, resolve = False):
338 """
339 Fetch matching hashtags, accounts and statuses. Will search federated
340 instances if resolve is True.
341
342 Returns a dict of lists.
343 """
344 params = self.__generate_params(locals())
345 return self.__api_request('GET', '/api/v1/search', params)
335 346
336 ### 347 ###
337 # Reading data: Mutes and Blocks 348 # Reading data: Mutes and Blocks
Powered by cgit v1.2.3 (git 2.41.0)