From 7ebc48c50e4b5dc6e7e32be1fca3096a2bc71a1c Mon Sep 17 00:00:00 2001 From: phryk Date: Fri, 7 Apr 2017 15:12:24 +0200 Subject: added content_search, probably. --- mastodon/Mastodon.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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: """ params = self.__generate_params(locals()) return self.__api_request('GET', '/api/v1/accounts/search', params) + + + def content_search(self, q, resolve = False): + """ + Fetch matching hashtags, accounts and statuses. Will search federated + instances if resolve is True. + + Returns a dict of lists. + """ + params = self.__generate_params(locals()) + return self.__api_request('GET', '/api/v1/search', params) ### # Reading data: Mutes and Blocks -- cgit v1.2.3