aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphryk <[email protected]>2017-04-07 15:12:24 +0200
committerphryk <[email protected]>2017-04-07 15:12:24 +0200
commit7ebc48c50e4b5dc6e7e32be1fca3096a2bc71a1c (patch)
treefecd989a48ee5fbf1ff4bcedc90a235e1132cde3 /mastodon
parent853ae97dccc91988874ae229e9977c8f41a02e44 (diff)
downloadmastodon.py-7ebc48c50e4b5dc6e7e32be1fca3096a2bc71a1c.tar.gz
added content_search, probably.
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)